projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
X86: Get rid of the unused getAllocator on the python base microop class.
[gem5.git]
/
src
/
arch
/
micro_asm_test.py
diff --git
a/src/arch/micro_asm_test.py
b/src/arch/micro_asm_test.py
index 858ac511eedb327bb27af2ab9bf1fdc255656740..b074ecb58f55e20110102f25b06bdadb70ece2cb 100755
(executable)
--- a/
src/arch/micro_asm_test.py
+++ b/
src/arch/micro_asm_test.py
@@
-26,7
+26,7
@@
#
# Authors: Gabe Black
#
# Authors: Gabe Black
-from micro_asm import MicroAssembler, Macroop, Rom
+from micro_asm import MicroAssembler,
Combinational_Macroop, Rom_
Macroop, Rom
class Bah(object):
def __init__(self):
class Bah(object):
def __init__(self):
@@
-52,7
+52,7
@@
microops = {
"dah": Dah
}
"dah": Dah
}
-class TestMacroop(Macroop):
+class TestMacroop(
Combinational_
Macroop):
def tweak(self):
microops["bah"] = Bah_Tweaked
def untweak(self):
def tweak(self):
microops["bah"] = Bah_Tweaked
def untweak(self):
@@
-68,7
+68,7
@@
class TestMacroop(Macroop):
"print": self.print_debug
}
"print": self.print_debug
}
-assembler = MicroAssembler(TestMacroop, microops, Rom('main ROM'))
+assembler = MicroAssembler(TestMacroop, microops, Rom('main ROM')
, Rom_Macroop
)
testAssembly = '''
# Single line comment
testAssembly = '''
# Single line comment
@@
-91,6
+91,13
@@
def macroop squishy {
.tweak
};
.tweak
};
+#Extending the rom...
+def rom
+{
+ #Here's more stuff for the rom
+ bah
+};
+
def macroop squashy {
bah
};
def macroop squashy {
bah
};