mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
MIPS32: Declare that the assembler part uses the FR=0 model.
Thanks to Peter Cawley. #1040
This commit is contained in:
parent
93ce12ee15
commit
9b544c25ef
@ -243,6 +243,12 @@ void emit_asm(BuildCtx *ctx)
|
|||||||
|
|
||||||
fprintf(ctx->fp, "\t.file \"buildvm_%s.dasc\"\n", ctx->dasm_arch);
|
fprintf(ctx->fp, "\t.file \"buildvm_%s.dasc\"\n", ctx->dasm_arch);
|
||||||
fprintf(ctx->fp, "\t.text\n");
|
fprintf(ctx->fp, "\t.text\n");
|
||||||
|
#if LJ_TARGET_MIPS32 && !LJ_ABI_SOFTFP
|
||||||
|
fprintf(ctx->fp, "\t.module fp=32\n");
|
||||||
|
#endif
|
||||||
|
#if LJ_TARGET_MIPS
|
||||||
|
fprintf(ctx->fp, "\t.set nomips16\n\t.abicalls\n\t.set noreorder\n\t.set nomacro\n");
|
||||||
|
#endif
|
||||||
emit_asm_align(ctx, 4);
|
emit_asm_align(ctx, 4);
|
||||||
|
|
||||||
#if LJ_TARGET_PS3
|
#if LJ_TARGET_PS3
|
||||||
@ -268,9 +274,6 @@ void emit_asm(BuildCtx *ctx)
|
|||||||
".save {r4, r5, r6, r7, r8, r9, r10, r11, lr}\n"
|
".save {r4, r5, r6, r7, r8, r9, r10, r11, lr}\n"
|
||||||
".pad #28\n");
|
".pad #28\n");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#if LJ_TARGET_MIPS
|
|
||||||
fprintf(ctx->fp, ".set nomips16\n.abicalls\n.set noreorder\n.set nomacro\n");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (i = rel = 0; i < ctx->nsym; i++) {
|
for (i = rel = 0; i < ctx->nsym; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user