Skip to content
Snippets Groups Projects
Commit e8ba8ef8 authored by Milica Lazarevic's avatar Milica Lazarevic Committed by Philippe Mathieu-Daudé
Browse files

disas/nanomips: Replace Cpp enums for C enums


Change enums to typedef enums to keep naming clear.

Signed-off-by: default avatarMilica Lazarevic <milica.lazarevic@syrmia.com>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-Id: <20220912122635.74032-23-milica.lazarevic@syrmia.com>
Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
parent 39399c38
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment