Add rodata where appropriate

This commit is contained in:
gingerBill
2026-06-14 16:50:21 +01:00
parent a1c2638080
commit a8d7aedf1e
3 changed files with 5 additions and 5 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",