summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-03-07 21:34:50 -0800
committerNathan Binkert <nate@binkert.org>2009-03-07 21:34:50 -0800
commitac64586a99cad5aa8daf4346e1f6021764dbca1b (patch)
tree3bcf3ded98755d119c9a1f958b1ea7828e5aedc7
parent4c902714f7c41d6e31cdf7c41642c22cb5fa9fcd (diff)
downloadgem5-ac64586a99cad5aa8daf4346e1f6021764dbca1b.tar.xz
build: fix compiler warnings in g++ 3.4
-rw-r--r--src/arch/x86/faults.hh22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/arch/x86/faults.hh b/src/arch/x86/faults.hh
index cb1a3f18a..fe5132994 100644
--- a/src/arch/x86/faults.hh
+++ b/src/arch/x86/faults.hh
@@ -76,9 +76,9 @@ namespace X86ISA
uint64_t errorCode;
X86FaultBase(const char * _faultName, const char * _mnem,
- const uint8_t _vector, uint64_t _errorCode = -1) :
- faultName(_faultName), mnem(_mnem),
- vector(_vector), errorCode(_errorCode)
+ const uint8_t _vector, uint64_t _errorCode = (uint64_t)-1)
+ : faultName(_faultName), mnem(_mnem),
+ vector(_vector), errorCode(_errorCode)
{
}
@@ -115,8 +115,8 @@ namespace X86ISA
{
protected:
X86Fault(const char * name, const char * mnem,
- const uint8_t vector, uint64_t _errorCode = -1) :
- X86FaultBase(name, mnem, vector, _errorCode)
+ const uint8_t vector, uint64_t _errorCode = (uint64_t)-1)
+ : X86FaultBase(name, mnem, vector, _errorCode)
{}
};
@@ -126,8 +126,8 @@ namespace X86ISA
{
protected:
X86Trap(const char * name, const char * mnem,
- const uint8_t vector, uint64_t _errorCode = -1) :
- X86FaultBase(name, mnem, vector, _errorCode)
+ const uint8_t vector, uint64_t _errorCode = (uint64_t)-1)
+ : X86FaultBase(name, mnem, vector, _errorCode)
{}
#if FULL_SYSTEM
@@ -140,8 +140,8 @@ namespace X86ISA
{
protected:
X86Abort(const char * name, const char * mnem,
- const uint8_t vector, uint64_t _errorCode = -1) :
- X86FaultBase(name, mnem, vector, _errorCode)
+ const uint8_t vector, uint64_t _errorCode = (uint64_t)-1)
+ : X86FaultBase(name, mnem, vector, _errorCode)
{}
#if FULL_SYSTEM
@@ -154,8 +154,8 @@ namespace X86ISA
{
protected:
X86Interrupt(const char * name, const char * mnem,
- const uint8_t _vector, uint64_t _errorCode = -1) :
- X86FaultBase(name, mnem, _vector, _errorCode)
+ const uint8_t _vector, uint64_t _errorCode = (uint64_t)-1)
+ : X86FaultBase(name, mnem, _vector, _errorCode)
{}
};