All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] accel/tcg: Use MiB in tcg_init_machine
@ 2021-06-10 16:40 Richard Henderson
  2021-06-10 17:25 ` Luis Fernando Fujita Pires
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Richard Henderson @ 2021-06-10 16:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alex Bennée

Suggested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---

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(-)

diff --git a/accel/tcg/tcg-all.c b/accel/tcg/tcg-all.c
index e990180c4b..1ee89902c3 100644
--- a/accel/tcg/tcg-all.c
+++ b/accel/tcg/tcg-all.c
@@ -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)
     /*
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [PATCH] accel/tcg: Use MiB in tcg_init_machine
  2021-06-10 16:40 [PATCH] accel/tcg: Use MiB in tcg_init_machine Richard Henderson
@ 2021-06-10 17:25 ` Luis Fernando Fujita Pires
  2021-06-10 17:57 ` Philippe Mathieu-Daudé
  2021-06-11 11:16 ` Alex Bennée
  2 siblings, 0 replies; 4+ messages in thread
From: Luis Fernando Fujita Pires @ 2021-06-10 17:25 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel; +Cc: Alex Bennée

From: Richard Henderson <richard.henderson@linaro.org>
> Suggested-by: Alex Bennée <alex.bennee@linaro.org>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> 
> 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(-)

Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] accel/tcg: Use MiB in tcg_init_machine
  2021-06-10 16:40 [PATCH] accel/tcg: Use MiB in tcg_init_machine Richard Henderson
  2021-06-10 17:25 ` Luis Fernando Fujita Pires
@ 2021-06-10 17:57 ` Philippe Mathieu-Daudé
  2021-06-11 11:16 ` Alex Bennée
  2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-06-10 17:57 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel; +Cc: Alex Bennée

On 6/10/21 6:40 PM, Richard Henderson wrote:
> Suggested-by: Alex Bennée <alex.bennee@linaro.org>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> 
> 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(-)

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] accel/tcg: Use MiB in tcg_init_machine
  2021-06-10 16:40 [PATCH] accel/tcg: Use MiB in tcg_init_machine Richard Henderson
  2021-06-10 17:25 ` Luis Fernando Fujita Pires
  2021-06-10 17:57 ` Philippe Mathieu-Daudé
@ 2021-06-11 11:16 ` Alex Bennée
  2 siblings, 0 replies; 4+ messages in thread
From: Alex Bennée @ 2021-06-11 11:16 UTC (permalink / raw)
  To: Richard Henderson; +Cc: qemu-devel


Richard Henderson <richard.henderson@linaro.org> writes:

> Suggested-by: Alex Bennée <alex.bennee@linaro.org>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>
> 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.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

-- 
Alex Bennée


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-11 11:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 16:40 [PATCH] accel/tcg: Use MiB in tcg_init_machine Richard Henderson
2021-06-10 17:25 ` Luis Fernando Fujita Pires
2021-06-10 17:57 ` Philippe Mathieu-Daudé
2021-06-11 11:16 ` Alex Bennée

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.