Skip to contentSkip to conversation

accel/tcg: Use MiB in tcg_init_machine

PATCH In review Richard Henderson 4 participants 4 messages Jun 10, 2021 – Jun 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 accel/tcg: Use MiB in tcg_init_machine

---

This sits in the middle of my "Clean up code_gen_buffer allocation" patch set. Alex mentioned it during review, and I had already made the change.

This is the only patch in the set that has not been posted and reviewed. Rather than re-posting the entire set, I'm just sending this one and will queue the whole thing to tcg-next.

r~

---
 accel/tcg/tcg-all.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
accel/tcg/tcg-all.c +2 -1
index e990180c4b..1ee89902c3 100644
@@ -32,6 +32,7 @@
 #include "qemu/error-report.h"
 #include "qemu/accel.h"
 #include "qapi/qapi-builtin-visit.h"
+#include "qemu/units.h"
 #include "internal.h"
 
 struct TCGState {
@@ -115,7 +116,7 @@ static int tcg_init_machine(MachineState *ms)
 
     page_init();
     tb_htable_init();
-    tcg_init(s->tb_size * 1024 * 1024, s->splitwx_enabled);
+    tcg_init(s->tb_size * MiB, s->splitwx_enabled);
 
 #if defined(CONFIG_SOFTMMU)
     /*
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

From: Richard Henderson <[email protected]>

Quoted 12 lines

---

This sits in the middle of my "Clean up code_gen_buffer allocation" patch set. Alex mentioned it during review, and I had already made the change.

This is the only patch in the set that has not been posted and reviewed. Rather than re-posting the entire set, I'm just sending this one and will queue the whole thing to tcg-next.

Quoted 5 lines

r~

---
 accel/tcg/tcg-all.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--
Luis Pires
Instituto de Pesquisas ELDORADO
Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>

Reviewed-by on v1 1/1
#2 lore raw
In reply to Richard Henderson
Quoted 13 lines · Richard Henderson

---

This sits in the middle of my "Clean up code_gen_buffer allocation" patch set. Alex mentioned it during review, and I had already made the change.

This is the only patch in the set that has not been posted and reviewed. Rather than re-posting the entire set, I'm just sending this one and will queue the whole thing to tcg-next.

Quoted 5 lines

r~

---
 accel/tcg/tcg-all.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by on v1 1/1
#3 lore raw
In reply to Richard Henderson
Quoted 11 lines · Richard Henderson

---

This sits in the middle of my "Clean up code_gen_buffer allocation" patch set. Alex mentioned it during review, and I had already made the change.

This is the only patch in the set that has not been posted and reviewed. Rather than re-posting the entire set, I'm just sending this one and will queue the whole thing to tcg-next.

Signature · 1 line
Alex Bennée