From 4b49bd47f464fb3fe31a943b913edb565fa68423 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Wed, 31 Oct 2007 18:04:22 -0700 Subject: 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 --- src/arch/mips/isa/formats/int.isa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/mips/isa/formats/int.isa') diff --git a/src/arch/mips/isa/formats/int.isa b/src/arch/mips/isa/formats/int.isa index 7fa8e4817..f23c4cbf6 100644 --- a/src/arch/mips/isa/formats/int.isa +++ b/src/arch/mips/isa/formats/int.isa @@ -119,7 +119,7 @@ output header {{ { //If Bit 15 is 1 then Sign Extend int32_t temp = sextImm & 0x00008000; - if (temp > 0 && mnemonic != "lui") { + if (temp > 0 && strcmp(mnemonic, "lui") != 0) { sextImm |= 0xFFFF0000; } } @@ -313,7 +313,7 @@ output decoder {{ ss << ", "; } - if( mnemonic == "lui") + if (strcmp(mnemonic, "lui") == 0) ccprintf(ss, "0x%x ", sextImm); else ss << (int) sextImm; -- cgit v1.2.3