aboutsummaryrefslogtreecommitdiff
path: root/tcg/sparc64/tcg-target-con-str.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-10-17 08:00:57 +0300
committerRichard Henderson <richard.henderson@linaro.org>2022-11-01 07:28:53 +1100
commit6d0b52ed889f47fa8e39e9611d7bce15cc533369 (patch)
tree3dab78bd0668804d86d7d8f9cef0a4e63c97d916 /tcg/sparc64/tcg-target-con-str.h
parent3a5f6805c7ca7deb8d1abaf0153936eeb51d074e (diff)
downloadqemu-6d0b52ed889f47fa8e39e9611d7bce15cc533369.zip
qemu-6d0b52ed889f47fa8e39e9611d7bce15cc533369.tar.gz
qemu-6d0b52ed889f47fa8e39e9611d7bce15cc533369.tar.bz2
tcg/sparc64: Rename from tcg/sparc
Emphasize that we only support full 64-bit code generation. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/sparc64/tcg-target-con-str.h')
-rw-r--r--tcg/sparc64/tcg-target-con-str.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tcg/sparc64/tcg-target-con-str.h b/tcg/sparc64/tcg-target-con-str.h
new file mode 100644
index 0000000..fdb25d9
--- /dev/null
+++ b/tcg/sparc64/tcg-target-con-str.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Define Sparc target-specific operand constraints.
+ * Copyright (c) 2021 Linaro
+ */
+
+/*
+ * Define constraint letters for register sets:
+ * REGS(letter, register_mask)
+ */
+REGS('r', ALL_GENERAL_REGS)
+REGS('R', ALL_GENERAL_REGS64)
+REGS('s', ALL_QLDST_REGS)
+REGS('S', ALL_QLDST_REGS64)
+REGS('A', TARGET_LONG_BITS == 64 ? ALL_QLDST_REGS64 : ALL_QLDST_REGS)
+
+/*
+ * Define constraint letters for constants:
+ * CONST(letter, TCG_CT_CONST_* bit set)
+ */
+CONST('I', TCG_CT_CONST_S11)
+CONST('J', TCG_CT_CONST_S13)
+CONST('Z', TCG_CT_CONST_ZERO)