From 6172f79d9eb4dab3d66349cf37747dc37284e325 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 1 Mar 2005 11:07:44 -0500 Subject: add some comments. sim/pyconfig/m5config.py: Add some comments to indicate what the decorators mean. --HG-- extra : convert_revision : fbcbcbe4ad8cd62f2bd12af6b1f141c66752b870 --- sim/pyconfig/m5config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sim/pyconfig/m5config.py b/sim/pyconfig/m5config.py index 50032476c..c413fef71 100644 --- a/sim/pyconfig/m5config.py +++ b/sim/pyconfig/m5config.py @@ -234,6 +234,9 @@ class MetaConfigNode(type): for key,val in dict.items(): del dict[key] + # See description of decorators in the importer.py file + # We just strip off the expr_decorator now since we don't + # need from this point on. if key.startswith(expr_decorator): key = key[len(expr_decorator):] @@ -285,6 +288,9 @@ class MetaConfigNode(type): # initialize attributes with values from class definition for key,value in dict.iteritems(): + # turn an expression that was munged in the importer + # because it had dots into a list so that we can find the + # proper variable to modify. key = key.split(dot_decorator) c = cls for item in key[:-1]: -- cgit v1.2.3 -- cgit v1.2.3 From 50a4ed87d0dc548e55d607381d0aecc35b02caf6 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Tue, 1 Mar 2005 22:32:14 -0500 Subject: Two fixes to try and get TLB miss cost more in line with real platform: 1) Add fault_handler_delay param to FullCPU to wait N cycles after committing faulting instruction before fetching fault handler. 2) Make hw_rei a serializing instruction (flushes pipe, basically). arch/alpha/isa_desc: Make hw_rei a serializing instruction (guarantees previous insts complete before hw_rei will issue). --HG-- extra : convert_revision : 704cef65b3869be9eee724055cedb22114a78359 --- arch/alpha/isa_desc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/isa_desc b/arch/alpha/isa_desc index 6a6bca4fe..0e07400d3 100644 --- a/arch/alpha/isa_desc +++ b/arch/alpha/isa_desc @@ -2566,7 +2566,7 @@ decode OPCODE default Unknown::unknown() { } format BasicOperate { - 0x1e: hw_rei({{ xc->hwrei(); }}); + 0x1e: hw_rei({{ xc->hwrei(); }}, IsSerializing); // M5 special opcodes use the reserved 0x01 opcode space 0x01: decode M5FUNC { -- cgit v1.2.3