projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9900ac9
)
SPARC: Make resTemp in udivcc wide enough to hold all the bits we need.
author
Vince Weaver
<vince@csl.cornell.edu>
Tue, 15 Sep 2009 12:48:20 +0000
(
05:48
-0700)
committer
Vince Weaver
<vince@csl.cornell.edu>
Tue, 15 Sep 2009 12:48:20 +0000
(
05:48
-0700)
src/arch/sparc/isa/decoder.isa
patch
|
blob
|
history
diff --git
a/src/arch/sparc/isa/decoder.isa
b/src/arch/sparc/isa/decoder.isa
index e34ca033f879143d19f3084a0bd67bc2d7e277e9..ce5e34ff00b2247a5f926727be577e9f1d41b892 100644
(file)
--- a/
src/arch/sparc/isa/decoder.isa
+++ b/
src/arch/sparc/isa/decoder.isa
@@
-226,7
+226,8
@@
decode OP default Unknown::unknown()
if(Rs2_or_imm13.udw == 0) fault = new DivisionByZero;
else Rd = Rs1.udw / Rs2_or_imm13.udw;}});
0x1E: IntOpCcRes::udivcc({{
- uint32_t resTemp, val2 = Rs2_or_imm13.udw;
+ uint64_t resTemp;
+ uint32_t val2 = Rs2_or_imm13.udw;
int32_t overflow = 0;
if(val2 == 0) fault = new DivisionByZero;
else