Re: [PATCH v3 36/42] target/arm: Add ARMFault_UnsuppAtomicUpdate

2022-10-07 Thread Peter Maydell
On Sat, 1 Oct 2022 at 17:47, Richard Henderson
 wrote:
>
> This fault type is to be used with FEAT_HAFDBS when
> the guest enables hw updates, but places the tables
> in memory where atomic updates are unsupported.
>
> Signed-off-by: Richard Henderson 
> ---
>  target/arm/internals.h | 4 
>  1 file changed, 4 insertions(+)

Reviewed-by: Peter Maydell 

thanks
-- PMM



[PATCH v3 36/42] target/arm: Add ARMFault_UnsuppAtomicUpdate

2022-10-01 Thread Richard Henderson
This fault type is to be used with FEAT_HAFDBS when
the guest enables hw updates, but places the tables
in memory where atomic updates are unsupported.

Signed-off-by: Richard Henderson 
---
 target/arm/internals.h | 4 
 1 file changed, 4 insertions(+)

diff --git a/target/arm/internals.h b/target/arm/internals.h
index e95b6b1b8f..4a2b1ec31c 100644
--- a/target/arm/internals.h
+++ b/target/arm/internals.h
@@ -338,6 +338,7 @@ typedef enum ARMFaultType {
 ARMFault_AsyncExternal,
 ARMFault_Debug,
 ARMFault_TLBConflict,
+ARMFault_UnsuppAtomicUpdate,
 ARMFault_Lockdown,
 ARMFault_Exclusive,
 ARMFault_ICacheMaint,
@@ -524,6 +525,9 @@ static inline uint32_t arm_fi_to_lfsc(ARMMMUFaultInfo *fi)
 case ARMFault_TLBConflict:
 fsc = 0x30;
 break;
+case ARMFault_UnsuppAtomicUpdate:
+fsc = 0x31;
+break;
 case ARMFault_Lockdown:
 fsc = 0x34;
 break;
-- 
2.34.1