qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sandra Loosemore <sandra@codesourcery.com>
To: Alexander Graf <agraf@suse.de>, Marek Vasut <marex@denx.de>,
	qemu-devel@nongnu.org
Cc: Jeff Da Silva <jdasilva@altera.com>,
	Chris Wulff <crwulff@gmail.com>,
	Yves Vandervennet <yvanderv@altera.com>,
	Ley Foon Tan <lftan@altera.com>
Subject: Re: [Qemu-devel] [PATCH V8 2/7] nios2: Add architecture emulation support
Date: Mon, 16 Jan 2017 16:31:13 -0700	[thread overview]
Message-ID: <587D57C1.2090005@codesourcery.com> (raw)
In-Reply-To: <37102228-c1e5-e8e5-c4a5-5c9ae186202b@suse.de>

On 01/16/2017 03:21 PM, Alexander Graf wrote:

>> +static void nios2_cpu_disas_set_info(CPUState *cpu, disassemble_info
>> *info)
>> +{
>> +    /* NOTE: NiosII R2 is not supported yet. */
>> +    info->mach = bfd_arch_nios2;
>> +#ifdef TARGET_WORDS_BIGENDIAN
>> +    info->print_insn = print_insn_big_nios2;
>> +#else
>> +    info->print_insn = print_insn_little_nios2;
>> +#endif
>
> I take it there is no runtime switch for endianness? Most architectures
> eventually got one and moved to a single default endianness for softmmu
> with swizzling for the "other" one (LE for ARM, BE for ppc).

Maybe QEMU should just error out if configured for big-endianness on 
this target.  Per the published Nios II Processor Reference Handbook, 
"The Nios II architecture uses little-endian byte ordering."  When I was 
working on preparing the nios2 binutils patches for submission, Altera 
asked me to retain the big-endian hooks because they didn't want to rule 
out officially supporting that feature.  I had no way to test anything 
big-endian, of course.

-Sandra

  reply	other threads:[~2017-01-16 23:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-31 13:22 [Qemu-devel] [PATCH V3 1/7] nios2: Add disas entries Marek Vasut
2016-12-31 13:22 ` [Qemu-devel] [PATCH V8 2/7] nios2: Add architecture emulation support Marek Vasut
2017-01-16 22:21   ` Alexander Graf
2017-01-16 23:31     ` Sandra Loosemore [this message]
2017-01-17  0:18     ` Marek Vasut
2017-01-17  8:16       ` Alexander Graf
2017-01-17  8:49         ` Marek Vasut
2016-12-31 13:22 ` [Qemu-devel] [PATCH V4 3/7] nios2: Add usermode binaries emulation Marek Vasut
2017-01-16 22:26   ` Alexander Graf
2016-12-31 13:22 ` [Qemu-devel] [PATCH V4 4/7] nios2: Add IIC interrupt controller emulation Marek Vasut
2017-01-16 22:32   ` Alexander Graf
2016-12-31 13:22 ` [Qemu-devel] [PATCH V4 5/7] nios2: Add periodic timer emulation Marek Vasut
2017-01-16 22:36   ` Alexander Graf
2017-01-16 23:18     ` Marek Vasut
2016-12-31 13:22 ` [Qemu-devel] [PATCH V5 6/7] nios2: Add Altera 10M50 GHRD emulation Marek Vasut
2017-01-16 22:42   ` Alexander Graf
2016-12-31 13:22 ` [Qemu-devel] [PATCH V4 7/7] nios2: Add support for Nios-II R1 Marek Vasut
2017-01-16 22:44   ` Alexander Graf
2017-01-16 21:34 ` [Qemu-devel] [PATCH V3 1/7] nios2: Add disas entries Marek Vasut
2017-01-16 21:50 ` Alexander Graf

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=587D57C1.2090005@codesourcery.com \
    --to=sandra@codesourcery.com \
    --cc=agraf@suse.de \
    --cc=crwulff@gmail.com \
    --cc=jdasilva@altera.com \
    --cc=lftan@altera.com \
    --cc=marex@denx.de \
    --cc=qemu-devel@nongnu.org \
    --cc=yvanderv@altera.com \
    /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).