From 00a30954aca97004cb6f586bdeeabb488f1e3c3f Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Fri, 9 Sep 2022 17:40:31 +0200 Subject: add support for thread-local storage The apple targets are not done yet. --- rv64/isel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rv64/isel.c') diff --git a/rv64/isel.c b/rv64/isel.c index 3d9884f..42c0097 100644 --- a/rv64/isel.c +++ b/rv64/isel.c @@ -44,8 +44,8 @@ fixarg(Ref *r, int k, Ins *i, Fn *fn) n = stashbits(&c->bits, KWIDE(k) ? 8 : 4); vgrow(&fn->con, ++fn->ncon); c = &fn->con[fn->ncon-1]; - sprintf(buf, "fp%d", n); - *c = (Con){.type = CAddr, .local = 1}; + sprintf(buf, "\"%sfp%d\"", T.asloc, n); + *c = (Con){.type = CAddr}; c->label = intern(buf); emit(Oload, k, r1, CON(c-fn->con), R); break; -- cgit 1.4.1