diff options
Diffstat (limited to 'rv64')
-rw-r--r-- | rv64/emit.c | 2 | ||||
-rw-r--r-- | rv64/isel.c | 2 | ||||
-rw-r--r-- | rv64/targ.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/rv64/emit.c b/rv64/emit.c index 2656c60..f976ade 100644 --- a/rv64/emit.c +++ b/rv64/emit.c @@ -415,7 +415,7 @@ rv64_emitfn(Fn *fn, FILE *f) Blk *b, *s; Ins *i; - gasemitlnk(fn->name, &fn->lnk, ".text", f); + emitlnk(fn->name, &fn->lnk, ".text", f); if (fn->vararg) { /* TODO: only need space for registers diff --git a/rv64/isel.c b/rv64/isel.c index e41578b..3d9884f 100644 --- a/rv64/isel.c +++ b/rv64/isel.c @@ -41,7 +41,7 @@ fixarg(Ref *r, int k, Ins *i, Fn *fn) * immediates */ assert(c->type == CBits); - n = gasstash(&c->bits, KWIDE(k) ? 8 : 4); + n = stashbits(&c->bits, KWIDE(k) ? 8 : 4); vgrow(&fn->con, ++fn->ncon); c = &fn->con[fn->ncon-1]; sprintf(buf, "fp%d", n); diff --git a/rv64/targ.c b/rv64/targ.c index 9360cf7..70701db 100644 --- a/rv64/targ.c +++ b/rv64/targ.c @@ -47,6 +47,8 @@ Target T_rv64 = { .abi = rv64_abi, .isel = rv64_isel, .emitfn = rv64_emitfn, + .emitfin = elf_emitfin, + .asloc = ".L", }; MAKESURE(rsave_size_ok, sizeof rv64_rsave == (NGPS+NFPS+1) * sizeof(int)); |