git subrepo pull --force deps/lightrec
authorPaul Cercueil <paul@crapouillou.net>
Sun, 19 Nov 2023 11:43:43 +0000 (12:43 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Sun, 19 Nov 2023 11:43:43 +0000 (12:43 +0100)
subrepo:
  subdir:   "deps/lightrec"
  merged:   "eb2d1a88ff"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "eb2d1a88ff"
git-subrepo:
  version:  "0.4.6"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "110b9eb"

deps/lightrec/.gitrepo
deps/lightrec/lightrec.c
deps/lightrec/optimizer.c

index 96c4fee..4a24742 100644 (file)
@@ -6,7 +6,7 @@
 [subrepo]
        remote = https://github.com/pcercuei/lightrec.git
        branch = master
-       commit = b9e4089b3b6121f2077dc85a8fe7f934e3ae1c20
-       parent = bbe0dac4b7062d5ead765329d9ddb1e1fe01eee2
+       commit = eb2d1a88ff22a5a71e27efffdbdb423bb9b91b4f
+       parent = ab206b0c7fd5228d09d0b0cf3183405a6960ea55
        method = merge
        cmdver = 0.4.6
index f589ce8..13434b4 100644 (file)
@@ -1941,7 +1941,7 @@ struct lightrec_state * lightrec_init(char *argv0,
        else
                lut_size = CODE_LUT_SIZE * sizeof(void *);
 
-       init_jit(argv0);
+       init_jit_with_debug(argv0, stdout);
 
        state = calloc(1, sizeof(*state) + lut_size);
        if (!state)
index 90b2139..792f35c 100644 (file)
@@ -299,6 +299,9 @@ static bool reg_is_dead(const struct opcode *list, unsigned int offset, u8 reg)
                if (opcode_writes_register(list[i].c, reg))
                        return true;
 
+               if (is_syscall(list[i].c))
+                       return false;
+
                if (has_delay_slot(list[i].c)) {
                        if (op_flag_no_ds(list[i].flags) ||
                            opcode_reads_register(list[i + 1].c, reg))