diff mbox series

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

Message ID 20240119144024.14289-24-anjo@rev.ng (mailing list archive)
State New, archived
Headers show
Series Compile accel/tcg once (partially) | expand

Commit Message

Anton Johansson Jan. 19, 2024, 2:40 p.m. UTC
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(+)

Comments

Richard Henderson Jan. 24, 2024, 1:50 a.m. UTC | #1
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~
diff mbox series

Patch

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;