1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-01-13 07:09:54 +00:00
Paul Mackerras 7bc7f335f1 Implement CTRL register
The CTRL register has a single bit called RUN.  It has some unusual
behaviours:

- It can only be written via SPR number 152, which is privileged
- It can only be read via SPR number 136, which is non-privileged
- Reading in problem state (user mode) returns the RUN bit in bit 0,
  but reading in privileged state (hypervisor mode) returns the RUN
  bit in bits 0 and 15.
- Reading SPR 152 in problem state causes a HEAI (illegal instruction)
  interrupt, but reading in privileged state is a no-op; this is the
  same as for an unimplemented SPR.

The RUN bit goes to the PMU and is also plumbed out to drive a LED on
the Arty board.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
2024-12-20 20:32:30 +11:00
..
2019-10-13 14:41:53 +11:00
2021-08-09 11:57:00 +10:00
2021-08-09 13:30:26 +10:00
2019-08-23 16:23:53 +10:00
2021-08-09 13:30:26 +10:00
2019-08-22 16:46:13 +10:00
2021-08-09 13:30:26 +10:00
2019-08-22 16:46:13 +10:00
2024-12-20 20:32:30 +11:00
2024-04-09 14:22:01 +10:00
2022-10-31 14:41:15 +08:00