aboutsummaryrefslogtreecommitdiff
path: root/disas
diff options
context:
space:
mode:
authorMilica Lazarevic <milica.lazarevic@syrmia.com>2022-09-12 14:26:33 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2022-10-31 11:32:07 +0100
commite8ba8ef873222178e238618d6d4b65b82cf47f41 (patch)
treeb67f40b8c1296e2bef4932f9a2b565c8e493bf26 /disas
parent39399c381d3bfc8f651f6d64f9f1f37d9763a8e3 (diff)
downloadqemu-e8ba8ef873222178e238618d6d4b65b82cf47f41.zip
qemu-e8ba8ef873222178e238618d6d4b65b82cf47f41.tar.gz
qemu-e8ba8ef873222178e238618d6d4b65b82cf47f41.tar.bz2
disas/nanomips: Replace Cpp enums for C enums
Change enums to typedef enums to keep naming clear. Signed-off-by: Milica Lazarevic <milica.lazarevic@syrmia.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220912122635.74032-23-milica.lazarevic@syrmia.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'disas')
-rw-r--r--disas/nanomips.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp
index 1832c2d..8b4bc91 100644
--- a/disas/nanomips.cpp
+++ b/disas/nanomips.cpp
@@ -40,16 +40,16 @@ typedef uint32_t uint32;
typedef uint16_t uint16;
typedef uint64_t img_address;
-enum TABLE_ENTRY_TYPE {
+typedef enum {
instruction,
call_instruction,
branch_instruction,
return_instruction,
reserved_block,
pool,
-};
+} TABLE_ENTRY_TYPE;
-enum TABLE_ATTRIBUTE_TYPE {
+typedef enum {
MIPS64_ = 0x00000001,
XNP_ = 0x00000002,
XMMS_ = 0x00000004,
@@ -67,7 +67,7 @@ enum TABLE_ATTRIBUTE_TYPE {
TLB_ = 0x00004000,
MVH_ = 0x00008000,
ALL_ATTRIBUTES = 0xffffffffull,
-};
+} TABLE_ATTRIBUTE_TYPE;
typedef struct Dis_info {
img_address m_pc;