1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-03-02 09:46:12 +00:00
Files
antonblanchard.microwatt/scripts/mw_debug/mw_debug.c
Paul Mackerras 1b6ee631bc core: Implement LPCR register
This implements the LPCR (Logical Partition Control Register) with 5
read/write bits.  The other 59 bits are read-only; two (HR and UPRT)
read as 1 and the rest as 0.

The bits that are implemented are:
* HAIL - enables taking interrupts with relocation on
* LD - enables large decrementer mode
* HEIC - disables external interrupts when set
* LPES - controls how external interrupts are delivered
* HVICE - does nothing at present since there is no source of
  	  Hypervisor Virtualization Interrupts.

This also fixes a bug where MSR[RI] was getting cleared by the
delivery of hypervisor interrupts.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
2025-03-28 20:38:20 +11:00

24 KiB