mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
spapr_hcall: Add address-translation-mode-on-interrupt resource in H_SET_MODE
This adds handling of the RESOURCE_ADDR_TRANS_MODE resource from the H_SET_MODE, for POWER8 (PowerISA 2.07) only. This defines AIL flags for LPCR special register. This changes @excp_prefix according to the mode, takes effect in TCG. This turns support of a new capability PPC2_ISA207S flag for TCG. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
c4015bbd50
commit
d5ac4f5433
4 changed files with 60 additions and 3 deletions
|
@ -164,6 +164,11 @@ typedef struct sPAPREnvironment {
|
|||
#define H_SET_MODE_ENDIAN_BIG 0
|
||||
#define H_SET_MODE_ENDIAN_LITTLE 1
|
||||
|
||||
/* Flags for H_SET_MODE_RESOURCE_ADDR_TRANS_MODE */
|
||||
#define H_SET_MODE_ADDR_TRANS_NONE 0
|
||||
#define H_SET_MODE_ADDR_TRANS_0001_8000 2
|
||||
#define H_SET_MODE_ADDR_TRANS_C000_0000_0000_4000 3
|
||||
|
||||
/* VASI States */
|
||||
#define H_VASI_INVALID 0
|
||||
#define H_VASI_ENABLED 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue