arch-power: Added enumeration for Interrupt PC state
authorkajoljain379 <kajoljain797@gmail.com>
Sat, 12 Jan 2019 08:08:36 +0000 (13:38 +0530)
committerKajol Jain <kajoljain797@gmail.com>
Wed, 12 Jun 2019 07:06:03 +0000 (12:36 +0530)
Added enum to get address of required interrupt service routine.

Change-Id: I1c5e0c149b870c0a7b60e5935fb7b701b3bf3084
Signed-off-by: kajoljain379 <kajoljain797@gmail.com>
src/arch/power/faults.hh

index e328922a9c5b5e3b563f43793e1eb5f4b6d68913..28592875a0c0ee5de6ae92c75fb5acf1484e6674 100644 (file)
 #define setBitMask(shift) ( (uint64_t)1 << shift)
 #define unsetMask(start ,end)(~((setBitMask(start))-1) | ((setBitMask(end))-1))
 
+enum pcSet
+{   DecrementerPCSet = 0x900,
+    SystemCallPCSet = 0xC00,
+    ProgramPCSet = 0x700,
+    DataStoragePCSet = 0x300,
+    InstrStoragePCSet = 0x400
+};
+
 namespace PowerISA
 {