qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Blue Swirl" <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH, MIPS64] 64-bit addressing fixes
Date: Mon, 21 May 2007 16:52:05 +0300	[thread overview]
Message-ID: <f43fc5580705210652v33d15b01u9e6330a737f35ce9@mail.gmail.com> (raw)
In-Reply-To: <20070520230147.GA14148@amd64.aurel32.net>

On 5/21/07, Aurelien Jarno <aurelien@aurel32.net> wrote:
> dyngen currently does not support passing 64-bit values to PARAM1 and
> PARAM2, they are limited to 32-bit. This patch creates a new op_set64
> function to set a register with a 64-bit value, by passing high and low
> word in PARAM1 and PARAM2. The same thing is done for the
> op_save_btarget and op_save_pc instructions. Unfortunately it is not
> possible to pass the value via T0, T1 or T2, and then move it to btarget
> or pc, because those functions are used in save_cpu_state where T0, T1
> or T2 may already be used.

I don't know MIPS, but perhaps you could try this trick used in Sparc:
static inline void gen_jmp_im(target_ulong pc)
{
#ifdef TARGET_SPARC64
    if (pc == (uint32_t)pc) {
        gen_op_jmp_im(pc);
    } else {
        gen_op_jmp_im64(pc >> 32, pc);
    }
#else
    gen_op_jmp_im(pc);
#endif
}

  reply	other threads:[~2007-05-21 13:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-20 23:01 [Qemu-devel] [PATCH, MIPS64] 64-bit addressing fixes Aurelien Jarno
2007-05-21 13:52 ` Blue Swirl [this message]
2007-05-26 21:15   ` Aurelien Jarno

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=f43fc5580705210652v33d15b01u9e6330a737f35ce9@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --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).