aboutsummaryrefslogtreecommitdiff
path: root/tasm/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-10-28 11:48:28 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-10-28 11:48:28 +0300
commit8153447847aeaa0e1181cf62579cc3264ba44a8b (patch)
tree08d2d9992748e04c94f201acdccc28504d236df6 /tasm/include
parentd96b8c7d12fc61ec609d6138627b9d6d18139a9a (diff)
downloadtri-8153447847aeaa0e1181cf62579cc3264ba44a8b.tar.gz
tri-8153447847aeaa0e1181cf62579cc3264ba44a8b.zip
add initial relocation stuff
Diffstat (limited to 'tasm/include')
-rw-r--r--tasm/include/tasm/assembler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasm/include/tasm/assembler.h b/tasm/include/tasm/assembler.h
index d687dbb..52ab867 100644
--- a/tasm/include/tasm/assembler.h
+++ b/tasm/include/tasm/assembler.h
@@ -6,7 +6,7 @@
struct asm_ctx;
-enum asm_reloc {
+enum asm_reloc_kind {
/* absolute LUI + ADDI */
RELOC_LA,
/* relative AUIPC + ADDI (currently unimplemented) */
@@ -35,7 +35,7 @@ void emit_d(struct asm_ctx *ctx, tri_t opcode,
/* emits a relocation for the previous instruction, very important to keep in
* mind! */
-void emit_reloc(struct asm_ctx *ctx, enum asm_reloc reloc, const char *name);
+void emit_reloc(struct asm_ctx *ctx, enum asm_reloc_kind reloc, const char *name);
void emit_label(struct asm_ctx *ctx, const char *name);
tri_t check_nop(const char *nop);