From: Jose Renau <renau@soe.ucsc.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] sun4u patch
Date: Wed, 25 Jan 2006 16:13:17 -0800 [thread overview]
Message-ID: <9dac3d29183b812695b856f90d657b19@soe.ucsc.edu> (raw)
The following patch is to make sparc64-softmmu compilable (tested on
OS X).
Index: target-sparc/op.c
===================================================================
--- target-sparc/op.c (revision 71)
+++ target-sparc/op.c (working copy)
@@ -851,6 +851,7 @@
void OPPROTO op_wrtick(void)
{
+ do_op_not_supported("op_wrtick");
// XXX write cycle counter and bit 31
}
@@ -1428,6 +1429,17 @@
{
do_fitod();
}
+#ifdef TARGET_SPARC64
+void OPPROTO op_fxtos(void)
+{
+ do_fxtos();
+}
+
+void OPPROTO op_fxtod(void)
+{
+ do_fxtod();
+}
+#endif
#else
void OPPROTO op_fitos(void)
{
@@ -1545,8 +1557,8 @@
void OPPROTO op_sir(void)
{
- // XXX
-
+ do_op_not_supported("op_sir");
+ // XXX
}
void OPPROTO op_ld_asi_reg()
Index: target-sparc/exec.h
===================================================================
--- target-sparc/exec.h (revision 71)
+++ target-sparc/exec.h (working copy)
@@ -73,6 +73,7 @@
void do_ldd_user(target_ulong addr);
void do_ldd_raw(target_ulong addr);
void do_interrupt(int intno);
+void do_op_not_supported(const char *str);
void raise_exception(int tt);
void memcpy32(target_ulong *dst, const target_ulong *src);
target_ulong mmu_probe(CPUState *env, target_ulong address, int
mmulev);
Index: target-sparc/op_helper.c
===================================================================
--- target-sparc/op_helper.c (revision 71)
+++ target-sparc/op_helper.c (working copy)
@@ -3,6 +3,11 @@
//#define DEBUG_PCALL
//#define DEBUG_MMU
+void do_op_not_supported(const char *str)
+{
+ fprintf(logfile, "%s not supported\n", str);
+}
+
void raise_exception(int tt)
{
env->exception_index = tt;
@@ -19,6 +24,16 @@
{
DT0 = (double) *((int32_t *)&FT1);
}
+
+void do_fxtos(void)
+{
+ FT0 = (float) *((int32_t *)&FT1);
+}
+
+void do_fxtod(void)
+{
+ DT0 = (double) *((int32_t *)&FT1);
+}
#endif
void do_fabss(void)
Index: target-sparc/translate.c
===================================================================
--- target-sparc/translate.c (revision 71)
+++ target-sparc/translate.c (working copy)
@@ -1361,7 +1361,8 @@
} else if (xop == 0x2b) { /* rdtbr / V9 flushw */
#ifdef TARGET_SPARC64
- gen_op_flushw(1);
+ // gen_op_flushw(1);
+ gen_op_flushw();
#else
if (!supervisor(dc))
goto priv_insn;
reply other threads:[~2006-01-26 0:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9dac3d29183b812695b856f90d657b19@soe.ucsc.edu \
--to=renau@soe.ucsc.edu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).