projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d9191a
)
ARM: Move the CP15 decode block into a function.
author
Gabe Black
<gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:13 +0000
(12:58 -0500)
committer
Gabe Black
<gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:13 +0000
(12:58 -0500)
src/arch/arm/isa/formats/misc.isa
patch
|
blob
|
history
diff --git
a/src/arch/arm/isa/formats/misc.isa
b/src/arch/arm/isa/formats/misc.isa
index 9ce1996372f7a9b078a7f9dab4abf8f2943e2cfa..03fb86287991cbaf876333df8f29040cc5b565d7 100644
(file)
--- a/
src/arch/arm/isa/formats/misc.isa
+++ b/
src/arch/arm/isa/formats/misc.isa
@@
-78,8
+78,14
@@
def format ArmMsrMrs() {{
'''
}};
-def format McrMrc15() {{
- decode_block = '''
+let {{
+ header_output = '''
+ StaticInstPtr
+ decodeMcrMrc15(ExtMachInst machInst);
+ '''
+ decoder_output = '''
+ StaticInstPtr
+ decodeMcrMrc15(ExtMachInst machInst)
{
const uint32_t opc1 = bits(machInst, 23, 21);
const uint32_t crn = bits(machInst, 19, 16);
@@
-180,3
+186,9
@@
def format McrMrc15() {{
}
'''
}};
+
+def format McrMrc15() {{
+ decode_block = '''
+ return decodeMcrMrc15(machInst);
+ '''
+}};