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
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.
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