diff options
author | Mike Pall <mike> | 2023-08-12 15:02:51 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2023-08-12 15:02:51 +0200 |
commit | 9b544c25efc6d3a3e9391ac7729813c1b7234070 (patch) | |
tree | 9a4e11c506e4f7312fa05bf4953ea21382aa126c /src/host | |
parent | 93ce12ee15abf28ef4cb24ae7e4b8a5b73d75c85 (diff) | |
download | luajit-9b544c25efc6d3a3e9391ac7729813c1b7234070.tar.gz luajit-9b544c25efc6d3a3e9391ac7729813c1b7234070.tar.bz2 luajit-9b544c25efc6d3a3e9391ac7729813c1b7234070.zip |
MIPS32: Declare that the assembler part uses the FR=0 model.
Thanks to Peter Cawley. #1040
Diffstat (limited to 'src/host')
-rw-r--r-- | src/host/buildvm_asm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/host/buildvm_asm.c b/src/host/buildvm_asm.c index 7baa011f..54e92cab 100644 --- a/src/host/buildvm_asm.c +++ b/src/host/buildvm_asm.c | |||
@@ -243,6 +243,12 @@ void emit_asm(BuildCtx *ctx) | |||
243 | 243 | ||
244 | fprintf(ctx->fp, "\t.file \"buildvm_%s.dasc\"\n", ctx->dasm_arch); | 244 | fprintf(ctx->fp, "\t.file \"buildvm_%s.dasc\"\n", ctx->dasm_arch); |
245 | fprintf(ctx->fp, "\t.text\n"); | 245 | fprintf(ctx->fp, "\t.text\n"); |
246 | #if LJ_TARGET_MIPS32 && !LJ_ABI_SOFTFP | ||
247 | fprintf(ctx->fp, "\t.module fp=32\n"); | ||
248 | #endif | ||
249 | #if LJ_TARGET_MIPS | ||
250 | fprintf(ctx->fp, "\t.set nomips16\n\t.abicalls\n\t.set noreorder\n\t.set nomacro\n"); | ||
251 | #endif | ||
246 | emit_asm_align(ctx, 4); | 252 | emit_asm_align(ctx, 4); |
247 | 253 | ||
248 | #if LJ_TARGET_PS3 | 254 | #if LJ_TARGET_PS3 |
@@ -269,9 +275,6 @@ void emit_asm(BuildCtx *ctx) | |||
269 | ".pad #28\n"); | 275 | ".pad #28\n"); |
270 | #endif | 276 | #endif |
271 | #endif | 277 | #endif |
272 | #if LJ_TARGET_MIPS | ||
273 | fprintf(ctx->fp, ".set nomips16\n.abicalls\n.set noreorder\n.set nomacro\n"); | ||
274 | #endif | ||
275 | 278 | ||
276 | for (i = rel = 0; i < ctx->nsym; i++) { | 279 | for (i = rel = 0; i < ctx->nsym; i++) { |
277 | int32_t ofs = ctx->sym[i].ofs; | 280 | int32_t ofs = ctx->sym[i].ofs; |