[RFC PATCH 23/34] tcg: [CPUTLB] Add `mo_te` field to TCGContext

Anton Johansson via posted 34 patches 10 months, 1 week ago
[RFC PATCH 23/34] tcg: [CPUTLB] Add `mo_te` field to TCGContext
Posted by Anton Johansson via 10 months, 1 week ago
Required by cpu_ldub_code() and friends in cputlb.c to access the MO_TE
MemOp in a target-independent way.

Signed-off-by: Anton Johansson <anjo@rev.ng>
---
 include/tcg/tcg.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index 7743868dc9..4ca626aeae 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -489,6 +489,7 @@ struct TCGContext {
     TCGType addr_type;            /* TCG_TYPE_I32 or TCG_TYPE_I64 */
 
 #ifdef CONFIG_SOFTMMU
+    MemOp mo_te;
     int page_mask;
     uint8_t page_bits;
     uint8_t tlb_dyn_max_bits;
-- 
2.43.0
Re: [RFC PATCH 23/34] tcg: [CPUTLB] Add `mo_te` field to TCGContext
Posted by Richard Henderson 10 months, 1 week ago
On 1/20/24 00:40, Anton Johansson wrote:
> Required by cpu_ldub_code() and friends in cputlb.c to access the MO_TE
> MemOp in a target-independent way.
> 
> Signed-off-by: Anton Johansson <anjo@rev.ng>
> ---
>   include/tcg/tcg.h | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
> index 7743868dc9..4ca626aeae 100644
> --- a/include/tcg/tcg.h
> +++ b/include/tcg/tcg.h
> @@ -489,6 +489,7 @@ struct TCGContext {
>       TCGType addr_type;            /* TCG_TYPE_I32 or TCG_TYPE_I64 */
>   
>   #ifdef CONFIG_SOFTMMU
> +    MemOp mo_te;
>       int page_mask;
>       uint8_t page_bits;
>       uint8_t tlb_dyn_max_bits;

Not the correct scope for this.


r~