diff options
author | Steve Reinhardt <stever@gmail.com> | 2007-10-31 18:04:22 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@gmail.com> | 2007-10-31 18:04:22 -0700 |
commit | 4b49bd47f464fb3fe31a943b913edb565fa68423 (patch) | |
tree | 34cea1a1e0ed0365bcd6b64ed0c2510ed37ca00c /src/arch/mips/isa/formats/branch.isa | |
parent | 71b033f4dcd2b34a01256139e280489b8f0f69ee (diff) | |
download | gem5-4b49bd47f464fb3fe31a943b913edb565fa68423.tar.xz |
String constant const-ness changes to placate g++ 4.2.
Also some bug fixes in MIPS ISA uncovered by g++ warnings
(Python string compares don't work in C++!).
--HG--
extra : convert_revision : b347cc0108f23890e9b73b3ee96059f0cea96cf6
Diffstat (limited to 'src/arch/mips/isa/formats/branch.isa')
-rw-r--r-- | src/arch/mips/isa/formats/branch.isa | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/mips/isa/formats/branch.isa b/src/arch/mips/isa/formats/branch.isa index e959e4c1b..e786b3d9f 100644 --- a/src/arch/mips/isa/formats/branch.isa +++ b/src/arch/mips/isa/formats/branch.isa @@ -196,7 +196,7 @@ output decoder {{ ccprintf(ss, "%-10s ", mnemonic); - if ( mnemonic == "jal" ) { + if (strcmp(mnemonic, "jal") == 0) { Addr npc = pc + 4; ccprintf(ss,"0x%x",(npc & 0xF0000000) | disp); } else if (_numSrcRegs == 0) { |