projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3d41a2
)
MIPS: Fix a compiler warning from the eret instruction.
author
Gabe Black
<gblack@eecs.umich.edu>
Sat, 28 Jan 2012 15:24:23 +0000
(07:24 -0800)
committer
Gabe Black
<gblack@eecs.umich.edu>
Sat, 28 Jan 2012 15:24:23 +0000
(07:24 -0800)
src/arch/mips/isa/formats/control.isa
patch
|
blob
|
history
diff --git
a/src/arch/mips/isa/formats/control.isa
b/src/arch/mips/isa/formats/control.isa
index 2d6748c05a06f7e6e0c70ecfaf332ae9256a8b7c..d8e5eb1111c4b1ea55448916cceb3f62fc29b138 100644
(file)
--- a/
src/arch/mips/isa/formats/control.isa
+++ b/
src/arch/mips/isa/formats/control.isa
@@
-88,14
+88,14
@@
def template CP0Execute {{
if (isCoprocessorEnabled(xc, 0)) {
%(code)s;
+
+ if(fault == NoFault)
+ {
+ %(op_wb)s;
+ }
} else {
fault = new CoprocessorUnusableFault(0);
}
-
- if(fault == NoFault)
- {
- %(op_wb)s;
- }
return fault;
}
}};