target/ppc: Prevent supervisor from modifying MSR[ME]
commit678b6f1af75ef42f510495a81fe8562e872e9daf
authorNicholas Piggin <npiggin@gmail.com>
Tue, 13 Jun 2023 14:16:23 +0000 (14 00:16 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 12 Mar 2024 16:47:04 +0000 (13 02:47 +1000)
treec2c3a476280782fc624e689ac14eef1e835d577d
parent99ea316e2a6180a8318f47a25c4a13d80ecf8ba4
target/ppc: Prevent supervisor from modifying MSR[ME]

Prevent guest state modifying the MSR[ME] bit. Per ISA:

  An attempt to modify MSR[ME] in privileged but non-hypervisor state
  is ignored (i.e., the bit is not changed).

Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/helper_regs.c