[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 07/10] target-s390x: Mark check_privileged() as !CONF
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL 07/10] target-s390x: Mark check_privileged() as !CONFIG_USER_ONLY |
Date: |
Tue, 3 Feb 2015 12:42:58 -0800 |
From: Peter Maydell <address@hidden>
The function check_privileged() is only used in the softmmu configs;
wrap it in an #ifndef CONFIG_USER_ONLY to avoid clang warnings on the
linux-user builds.
[rth: Remove inline marker too; it was only there to prevent exactly
this warning in GCC.]
Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Stefan Weil <address@hidden>
Message-id: address@hidden
Signed-off-by: Richard Henderson <address@hidden>
---
target-s390x/translate.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/target-s390x/translate.c b/target-s390x/translate.c
index e7a6c1d..8b36eca 100644
--- a/target-s390x/translate.c
+++ b/target-s390x/translate.c
@@ -317,12 +317,14 @@ static inline void gen_illegal_opcode(DisasContext *s)
gen_program_exception(s, PGM_SPECIFICATION);
}
-static inline void check_privileged(DisasContext *s)
+#ifndef CONFIG_USER_ONLY
+static void check_privileged(DisasContext *s)
{
if (s->tb->flags & (PSW_MASK_PSTATE >> 32)) {
gen_program_exception(s, PGM_PRIVILEGED);
}
}
+#endif
static TCGv_i64 get_address(DisasContext *s, int x2, int b2, int d2)
{
--
2.1.0
- [Qemu-devel] [PULL 00/10] s390x translator bug fixes, Richard Henderson, 2015/02/03
- [Qemu-devel] [PULL 02/10] target-s390: Implement EPSW, Richard Henderson, 2015/02/03
- [Qemu-devel] [PULL 03/10] target-s390: Fix STIDP, Richard Henderson, 2015/02/03
- [Qemu-devel] [PULL 01/10] target-s390: Implement SAM specification exception, Richard Henderson, 2015/02/03
- [Qemu-devel] [PULL 04/10] target-s390: Fix STURA, Richard Henderson, 2015/02/03
- [Qemu-devel] [PULL 05/10] target-s390: Implement LURA, LURAG, STURG, Richard Henderson, 2015/02/03
- [Qemu-devel] [PULL 08/10] disas/s390.c: Remove unused variables, Richard Henderson, 2015/02/03
- [Qemu-devel] [PULL 06/10] target-s390: Implement ECAG, Richard Henderson, 2015/02/03
- [Qemu-devel] [PULL 09/10] target-s390x: support OC and NC in the EX instruction, Richard Henderson, 2015/02/03
- [Qemu-devel] [PULL 10/10] target-s390x: fix and optimize slb* and slbg* computation of carry/borrow flag, Richard Henderson, 2015/02/03
- [Qemu-devel] [PULL 07/10] target-s390x: Mark check_privileged() as !CONFIG_USER_ONLY,
Richard Henderson <=
- Re: [Qemu-devel] [PULL 00/10] s390x translator bug fixes, Peter Maydell, 2015/02/03