qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 06/23] target/hexagon: Use MMU_INDEX() helper


From: Helge Deller
Subject: [PATCH 06/23] target/hexagon: Use MMU_INDEX() helper
Date: Sun, 6 Aug 2023 13:59:44 +0200

Use the new MMU_INDEX() helper to specify the index of the CPUTLB which
should be used.  Additionally, in a follow-up patch this helper allows
then to optimize the tcg code generation.

Signed-off-by: Helge Deller <deller@gmx.de>
---
 target/hexagon/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h
index daef5c3f00..b4cf9f1a7d 100644
--- a/target/hexagon/cpu.h
+++ b/target/hexagon/cpu.h
@@ -51,7 +51,7 @@
 void hexagon_cpu_list(void);
 #define cpu_list hexagon_cpu_list

-#define MMU_USER_IDX 0
+#define MMU_USER_IDX MMU_INDEX(0)

 typedef struct {
     target_ulong va;
--
2.41.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]