summaryrefslogtreecommitdiff
path: root/src/arch/arm/faults.cc
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2011-02-23 15:10:48 -0600
committerAli Saidi <Ali.Saidi@ARM.com>2011-02-23 15:10:48 -0600
commite572cf93ee411ef40acdb64eb3073231619862ed (patch)
treeb3eecbb8d0e3fb57889136047b5c7e21794751c5 /src/arch/arm/faults.cc
parent511c637ab0549952b6e67eeae65fafa8aab8c7c3 (diff)
downloadgem5-e572cf93ee411ef40acdb64eb3073231619862ed.tar.xz
ARM: Delete OABI syscall handling.
We only support EABI binaries, so there is no reason to support OABI syscalls. The loader detects OABI calls and fatal() so there is no reason to even check here.
Diffstat (limited to 'src/arch/arm/faults.cc')
-rw-r--r--src/arch/arm/faults.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/arch/arm/faults.cc b/src/arch/arm/faults.cc
index 54cf5cfe5..e388c72a8 100644
--- a/src/arch/arm/faults.cc
+++ b/src/arch/arm/faults.cc
@@ -184,14 +184,7 @@ SupervisorCall::invoke(ThreadContext *tc, StaticInstPtr inst)
// As of now, there isn't a 32 bit thumb version of this instruction.
assert(!machInst.bigThumb);
uint32_t callNum;
- if (machInst.thumb) {
- callNum = bits(machInst, 7, 0);
- } else {
- callNum = bits(machInst, 23, 0);
- }
- if (callNum == 0) {
- callNum = tc->readIntReg(INTREG_R7);
- }
+ callNum = tc->readIntReg(INTREG_R7);
tc->syscall(callNum);
// Advance the PC since that won't happen automatically.