arch-power: Added support for Program Interrupt
authorKajol Jain <kajoljain797@gmail.com>
Wed, 12 Jun 2019 06:35:17 +0000 (12:05 +0530)
committerKajol Jain <kajoljain797@gmail.com>
Wed, 12 Jun 2019 07:07:45 +0000 (12:37 +0530)
commita1610c78ece6579ce51ecfb58ad56fb093aa1f96
tree6329014205cf70f2659687a6effbd8810a83edf9
parent4d53a10a15baa37684c9ad1e14a9392da215dc84
arch-power: Added support for Program Interrupt

Added supoort for program interrupt for Privileged type instruction.

* Added flag IsPrivileged to check wheather instruction is
  privileged or not.
* Define bit number to be set in MSR for corresponding interrupt.
* Added Program interrupt handler with privileged type interrupt handler.
* Add IsPrivileged flag in all privileged instructions
* Add checker for PR bit inorder to verify mode for privilege instructions
  and raise interrupt if needed.

Change-Id: I2aeb1a603568a6f80cd074bf67d4a528ebb6a5bd
Signed-off-by: Kajol Jain <kajoljain797@gmail.com>
src/arch/power/faults.hh
src/arch/power/isa/decoder.isa
src/arch/power/isa/formats/integer.isa
src/arch/power/isa/formats/misc.isa
src/cpu/StaticInstFlags.py
src/cpu/static_inst.hh