mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-30 06:32:43 +00:00
Fix borken identation in tables
This commit is contained in:
parent
d57c3b22b2
commit
3c8904b6fb
1
Makefile
1
Makefile
@ -106,6 +106,7 @@ static: $(STATIC_LIB) $(STATIC_LIB_XX)
|
||||
dynamic: $(DYNAMIC_LIB) $(DYNAMIC_LIB_XX)
|
||||
|
||||
tables: $(TABLE_GENERATED)
|
||||
make -C rust tables
|
||||
|
||||
clean:
|
||||
$(RM) -rf build
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
RABBITIZER_DEF_ABI(NUMERIC),
|
||||
RABBITIZER_DEF_ABI(O32),
|
||||
RABBITIZER_DEF_ABI(N32),
|
||||
RABBITIZER_DEF_ABI(N64),
|
||||
RABBITIZER_DEF_ABI(NUMERIC)
|
||||
RABBITIZER_DEF_ABI(O32)
|
||||
RABBITIZER_DEF_ABI(N32)
|
||||
RABBITIZER_DEF_ABI(N64)
|
||||
|
@ -1,12 +1,12 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#define RABBITIZER_DEF_ABI(name) RABBITIZER_ABI_##name
|
||||
#define RABBITIZER_DEF_ABI(name) RABBITIZER_ABI_##name,
|
||||
|
||||
typedef enum RabbitizerAbi {
|
||||
#include "Abi.inc"
|
||||
|
||||
RABBITIZER_DEF_ABI(MAX),
|
||||
RABBITIZER_DEF_ABI(MAX)
|
||||
} RabbitizerAbi;
|
||||
|
||||
#undef RABBITIZER_DEF_ABI
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
RAB_DEF_ACCESSTYPE(INVALID)
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(CPU),
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(RSP), // N64
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(R3000GTE), // R3000 CPU with PS1's Geometry Transformation Engine extension
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(R5900), // PS2's Emotion Engine
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(CPU)
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(RSP) // N64
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(R3000GTE) // R3000 CPU with PS1's Geometry Transformation Engine extension
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(R5900) // PS2's Emotion Engine
|
||||
|
@ -1,12 +1,12 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#define RABBITIZER_DEF_INSTR_CATEGORY(name) RABBITIZER_INSTRCAT_##name
|
||||
#define RABBITIZER_DEF_INSTR_CATEGORY(name) RABBITIZER_INSTRCAT_##name,
|
||||
|
||||
typedef enum RabbitizerInstrCategory {
|
||||
#include "InstrCategory.inc"
|
||||
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(MAX),
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(MAX)
|
||||
} RabbitizerInstrCategory;
|
||||
|
||||
#undef RABBITIZER_DEF_INSTR_CATEGORY
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
RABBITIZER_DEF_INSTR_ID(
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
RABBITIZER_DEF_INSTR_ID(
|
||||
|
@ -1,7 +1,8 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// RSP instructions
|
||||
|
||||
RABBITIZER_DEF_INSTR_ID(
|
||||
rsp, , INVALID,
|
||||
.operands={RAB_OPERAND_rsp_vd, RAB_OPERAND_rsp_vs, RAB_OPERAND_rsp_vt_elementhigh}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP rt, cop0d
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP IMM
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP rt, fs
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP IMM
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP fd, fs, ft
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP fd, fs
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP fd, fs, ft
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP fd, fs
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP rt, cop2cd
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP LABEL
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP rs, IMM
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP rd, rt, sa
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP rt, cop0d
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP cop2t, vd[index]
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP vd, vs, vt[elementhigh]
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP LABEL
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP vt[elementlow], offset(vs)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP vt[elementlow], offset(vs)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP rs, IMM
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// OP rd, rt, sa
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
RAB_DEF_OPERAND(cpu, rs)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
RAB_DEF_OPERAND(r5900, I)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
RAB_DEF_OPERAND(rsp, rs)
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "common/Utils.h"
|
||||
|
||||
|
||||
#define RABBITIZER_DEF_ABI(name) { "Abi", #name, RABBITIZER_ABI_##name, false, NULL }
|
||||
#define RABBITIZER_DEF_ABI(name) { "Abi", #name, RABBITIZER_ABI_##name, false, NULL },
|
||||
|
||||
RabbitizerEnumMetadata rabbitizer_enum_Abi_enumvalues[] = {
|
||||
#include "common/Abi.inc"
|
||||
|
@ -1,11 +1,11 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include "enums_utils.h"
|
||||
#include "instructions/RabbitizerInstruction.h"
|
||||
|
||||
|
||||
#define RABBITIZER_DEF_INSTR_CATEGORY(name) { "InstrCategory", #name, RABBITIZER_INSTRCAT_##name, false, NULL }
|
||||
#define RABBITIZER_DEF_INSTR_CATEGORY(name) { "InstrCategory", #name, RABBITIZER_INSTRCAT_##name, false, NULL },
|
||||
|
||||
RabbitizerEnumMetadata rabbitizer_enum_InstrCategory_enumvalues[] = {
|
||||
#include "instructions/InstrCategory.inc"
|
||||
|
@ -5,7 +5,7 @@
|
||||
#define HASH_EXPANSION(x) x
|
||||
#define SPECIAL_RS_TAG(...) HASH_EXPANSION(HASH)[__VA_ARGS__]
|
||||
|
||||
#define RABBITIZER_DEF_ABI(name) name
|
||||
#define RABBITIZER_DEF_ABI(name) name,
|
||||
|
||||
SPECIAL_RS_TAG(repr(u32))
|
||||
SPECIAL_RS_TAG(derive(Debug, Copy, Clone, Hash, PartialEq, Eq))
|
||||
@ -13,7 +13,7 @@ SPECIAL_RS_TAG(allow(non_camel_case_types))
|
||||
pub enum Abi {
|
||||
#include "common/Abi.inc"
|
||||
|
||||
RABBITIZER_DEF_ABI(MAX),
|
||||
RABBITIZER_DEF_ABI(MAX)
|
||||
}
|
||||
|
||||
#undef RABBITIZER_DEF_ABI
|
||||
|
@ -1,11 +1,11 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#define HASH #
|
||||
#define HASH_EXPANSION(x) x
|
||||
#define SPECIAL_RS_TAG(...) HASH_EXPANSION(HASH)[__VA_ARGS__]
|
||||
|
||||
#define RABBITIZER_DEF_INSTR_CATEGORY(name) name
|
||||
#define RABBITIZER_DEF_INSTR_CATEGORY(name) name,
|
||||
|
||||
SPECIAL_RS_TAG(repr(u32))
|
||||
SPECIAL_RS_TAG(derive(Debug, Copy, Clone, Hash, PartialEq, Eq))
|
||||
@ -13,7 +13,7 @@ SPECIAL_RS_TAG(allow(non_camel_case_types))
|
||||
pub enum InstrCategory {
|
||||
#include "instructions/InstrCategory.inc"
|
||||
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(MAX),
|
||||
RABBITIZER_DEF_INSTR_CATEGORY(MAX)
|
||||
}
|
||||
|
||||
#undef RABBITIZER_DEF_INSTR_CATEGORY
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
||||
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#define RABBITIZER_DEF_INSTR_CATEGORY(name) [RABBITIZER_INSTRCAT_##name] = #name
|
||||
#define RABBITIZER_DEF_INSTR_CATEGORY(name) [RABBITIZER_INSTRCAT_##name] = #name,
|
||||
|
||||
const char *const RabbitizerInstrCategory_Names[] = {
|
||||
#include "instructions/InstrCategory.inc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user