Re: [PATCH 5/9] accel: Move CPUTLB to CPUState and assert offset

2023-07-04 Thread Anton Johansson via
On 6/30/23 16:16, Richard Henderson wrote: On 6/30/23 14:25, Anton Johansson wrote: @@ -448,6 +448,13 @@ struct CPUState {     /* track IOMMUs whose translations we've cached in the TCG TLB */   GArray *iommu_notifiers; + +    /* + * The following fields needs to be within CPU_M

Re: [PATCH 5/9] accel: Move CPUTLB to CPUState and assert offset

2023-06-30 Thread Richard Henderson
On 6/30/23 14:25, Anton Johansson wrote: @@ -448,6 +448,13 @@ struct CPUState { /* track IOMMUs whose translations we've cached in the TCG TLB */ GArray *iommu_notifiers; + +/* + * The following fields needs to be within CPU_MAX_NEGATIVE_ENV_OFFSET of + * CPUArchState.

[PATCH 5/9] accel: Move CPUTLB to CPUState and assert offset

2023-06-30 Thread Anton Johansson via
As CPUTLB is now target-agnostic it can be moved from CPUNegativeOffsetState to CPUState, and the negative offset from CPUArchState can instead be statically asserted to be greater than CPU_MAX_NEGATIVE_ENV_OFFSET. This also opens up the door for reducing the dependency of common code on CPUArchSt