arch-power: Added support for Program Interrupt
authorKajol Jain <kajoljain797@gmail.com>
Wed, 12 Jun 2019 06:35:17 +0000 (12:05 +0530)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 24 Jan 2021 03:59:10 +0000 (03:59 +0000)
commita5d5a4d1977e4d935c233e4f95b6d3e52d4257c4
treec349df0511828299024e80a943464fcc0f04f293
parent019e920c151f4ed95386c572b0ad75bed1675602
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