qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] MIPS: Fix dmtc0 instruction
@ 2008-08-23 16:42 Hervé Poussineau
  2008-08-23 17:24 ` Aurelien Jarno
  0 siblings, 1 reply; 9+ messages in thread
From: Hervé Poussineau @ 2008-08-23 16:42 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

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é

[-- Attachment #2: dmtc0_fix.diff --]
[-- Type: text/plain, Size: 402 bytes --]

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();

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Qemu-devel] [PATCH] MIPS: Fix dmtc0 instruction
@ 2008-08-23 16:40 Hervé Poussineau
  0 siblings, 0 replies; 9+ messages in thread
From: Hervé Poussineau @ 2008-08-23 16:40 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

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.

Hervé

[-- Attachment #2: dmtc0_fix.diff --]
[-- Type: text/plain, Size: 402 bytes --]

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();

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-08-25 22:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-23 16:42 [Qemu-devel] [PATCH] MIPS: Fix dmtc0 instruction Hervé Poussineau
2008-08-23 17:24 ` Aurelien Jarno
2008-08-25 11:28   ` Thiemo Seufer
2008-08-25 12:55     ` Aurelien Jarno
2008-08-25 14:12       ` Thiemo Seufer
2008-08-25 18:51     ` Stefan Weil
2008-08-25 21:10       ` Thiemo Seufer
2008-08-25 22:26         ` Aurelien Jarno
  -- strict thread matches above, loose matches on Subject: below --
2008-08-23 16:40 Hervé Poussineau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).