aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/host/buildvm_asm.c9
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;