[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/7] sysemu/tcg: Only declare tcg_allowed when TCG is availabl
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 2/7] sysemu/tcg: Only declare tcg_allowed when TCG is available |
Date: |
Tue, 26 May 2020 19:24:22 +0200 |
When TCG is not available, the tcg_allowed variable does not exist.
Reviewed-by: Edgar E. Iglesias <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
include/sysemu/tcg.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/sysemu/tcg.h b/include/sysemu/tcg.h
index 7d116d2e80..d9d3ca8559 100644
--- a/include/sysemu/tcg.h
+++ b/include/sysemu/tcg.h
@@ -8,9 +8,9 @@
#ifndef SYSEMU_TCG_H
#define SYSEMU_TCG_H
-extern bool tcg_allowed;
void tcg_exec_init(unsigned long tb_size);
#ifdef CONFIG_TCG
+extern bool tcg_allowed;
#define tcg_enabled() (tcg_allowed)
#else
#define tcg_enabled() 0
--
2.21.3
- [PATCH v2 0/7] exec/cpu: Cleanups around "exec/hwaddr.h" (reserved to system-mode), Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 1/7] sysemu/accel: Restrict machine methods to system-mode, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 2/7] sysemu/tcg: Only declare tcg_allowed when TCG is available,
Philippe Mathieu-Daudé <=
- [PATCH v2 3/7] sysemu/hvf: Only declare hvf_allowed when HVF is available, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 4/7] target/ppc: Restrict PPCVirtualHypervisorClass to system-mode, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 5/7] target/s390x: Only compile decode_basedisp() on system-mode, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 6/7] target/s390x/helper: Clean ifdef'ry, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 7/7] target/s390x: Restrict system-mode declarations, Philippe Mathieu-Daudé, 2020/05/26
- Re: [PATCH v2 0/7] exec/cpu: Cleanups around "exec/hwaddr.h" (reserved to system-mode), Cornelia Huck, 2020/05/27