mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
39399c381d
commit
e8ba8ef873
1 changed files with 4 additions and 4 deletions
|
@ -40,16 +40,16 @@ typedef uint32_t uint32;
|
||||||
typedef uint16_t uint16;
|
typedef uint16_t uint16;
|
||||||
typedef uint64_t img_address;
|
typedef uint64_t img_address;
|
||||||
|
|
||||||
enum TABLE_ENTRY_TYPE {
|
typedef enum {
|
||||||
instruction,
|
instruction,
|
||||||
call_instruction,
|
call_instruction,
|
||||||
branch_instruction,
|
branch_instruction,
|
||||||
return_instruction,
|
return_instruction,
|
||||||
reserved_block,
|
reserved_block,
|
||||||
pool,
|
pool,
|
||||||
};
|
} TABLE_ENTRY_TYPE;
|
||||||
|
|
||||||
enum TABLE_ATTRIBUTE_TYPE {
|
typedef enum {
|
||||||
MIPS64_ = 0x00000001,
|
MIPS64_ = 0x00000001,
|
||||||
XNP_ = 0x00000002,
|
XNP_ = 0x00000002,
|
||||||
XMMS_ = 0x00000004,
|
XMMS_ = 0x00000004,
|
||||||
|
@ -67,7 +67,7 @@ enum TABLE_ATTRIBUTE_TYPE {
|
||||||
TLB_ = 0x00004000,
|
TLB_ = 0x00004000,
|
||||||
MVH_ = 0x00008000,
|
MVH_ = 0x00008000,
|
||||||
ALL_ATTRIBUTES = 0xffffffffull,
|
ALL_ATTRIBUTES = 0xffffffffull,
|
||||||
};
|
} TABLE_ATTRIBUTE_TYPE;
|
||||||
|
|
||||||
typedef struct Dis_info {
|
typedef struct Dis_info {
|
||||||
img_address m_pc;
|
img_address m_pc;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue