From a8d7aedf1ebbc4ee54c2d2938099f92e96e7c202 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 14 Jun 2026 16:50:21 +0100 Subject: [PATCH] Add `rodata` where appropriate --- core/rexcode/mips/printer.odin | 2 +- core/rexcode/riscv/printer.odin | 4 ++-- core/rexcode/rsp/printer.odin | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/rexcode/mips/printer.odin b/core/rexcode/mips/printer.odin index 4b002f227..6111886fc 100644 --- a/core/rexcode/mips/printer.odin +++ b/core/rexcode/mips/printer.odin @@ -30,7 +30,7 @@ DEFAULT_PRINT_OPTIONS :: isa.DEFAULT_PRINT_OPTIONS // ---- ABI register name tables ---------------------------------------------- -@(private="file") +@(rodata, private="file") GPR_NAMES_ABI := [32]string{ "zero", "at", "v0", "v1", diff --git a/core/rexcode/riscv/printer.odin b/core/rexcode/riscv/printer.odin index 4376e6b28..15a122224 100644 --- a/core/rexcode/riscv/printer.odin +++ b/core/rexcode/riscv/printer.odin @@ -33,7 +33,7 @@ Print_Options :: isa.Print_Options Print_Result :: isa.Print_Result DEFAULT_PRINT_OPTIONS :: isa.DEFAULT_PRINT_OPTIONS -@(private="file") +@(rodata, private="file") GPR_ABI := [32]string{ "zero", "ra", "sp", "gp", "tp", "t0", "t1", "t2", @@ -43,7 +43,7 @@ GPR_ABI := [32]string{ "t3", "t4", "t5", "t6", } -@(private="file") +@(rodata, private="file") FPR_ABI := [32]string{ "ft0", "ft1", "ft2", "ft3", "ft4", "ft5", "ft6", "ft7", "fs0", "fs1", diff --git a/core/rexcode/rsp/printer.odin b/core/rexcode/rsp/printer.odin index fa1f1ca8b..97c9b5896 100644 --- a/core/rexcode/rsp/printer.odin +++ b/core/rexcode/rsp/printer.odin @@ -27,7 +27,7 @@ Print_Options :: isa.Print_Options Print_Result :: isa.Print_Result DEFAULT_PRINT_OPTIONS :: isa.DEFAULT_PRINT_OPTIONS -@(private="file") +@(rodata, private="file") GPR_NAMES_ABI := [32]string{ "zero", "at", "v0", "v1", @@ -39,7 +39,7 @@ GPR_NAMES_ABI := [32]string{ "gp", "sp", "fp", "ra", } -@(private="file") +@(rodata, private="file") CP0_NAMES := [16]string{ "sp_mem_addr", "sp_dram_addr", "sp_rd_len", "sp_wr_len", "sp_status", "sp_dma_full", "sp_dma_busy", "sp_semaphore",