[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] MIPS: Fix dmtc0 instruction
From: |
Hervé Poussineau |
Subject: |
[Qemu-devel] [PATCH] MIPS: Fix dmtc0 instruction |
Date: |
Sat, 23 Aug 2008 18:42:34 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (Windows/20080708) |
Hi,
In gen_dmtc0 function, TCG temporary variable t0 is freed at the end of
the function. Variable is freed again in the gen_dmtc0 caller.
I removed the free in gen_dmtc0, to do like in gen_dmfc0, gen_mfc0,
gen_mtc0.
Incidentally, this unregresses NetBSD on Pica 61.
Hervé
Index: target-mips/translate.c
===================================================================
--- target-mips/translate.c (revision 5074)
+++ target-mips/translate.c (working copy)
@@ -5188,7 +5188,6 @@
rn, reg, sel);
}
#endif
- tcg_temp_free(t0);
/* For simplicity assume that all writes can cause interrupts. */
if (use_icount) {
gen_io_end();