summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ir/be/riscv/riscv_emitter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/riscv/riscv_emitter.c b/ir/be/riscv/riscv_emitter.c
index 02fb44f..e56284c 100644
--- a/ir/be/riscv/riscv_emitter.c
+++ b/ir/be/riscv/riscv_emitter.c
@@ -221,7 +221,7 @@ static void emit_be_MemPerm(ir_node const *const node)
if (memperm_arity > max_arity)
panic("memperm with more than %d inputs not supported yet", max_arity);
- char const *const frame_base = omit_fp ? "sp" : "fp";
+ char const *const frame_base = omit_fp ? "sp" : "s0";
int const memperm_offset = be_get_MemPerm_offset(node);
int ent_offset = memperm_offset;