ARM: Delete OABI syscall handling.
authorAli Saidi <Ali.Saidi@ARM.com>
Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)
committerAli Saidi <Ali.Saidi@ARM.com>
Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)
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.

src/arch/arm/faults.cc

index 54cf5cfe575174e9804c72a2bc3319b6e739cf25..e388c72a875efea91070ee7222f72b038d1b10be 100644 (file)
@@ -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.