[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V8 2/7] nios2: Add architecture emulation suppor

From: Sandra Loosemore
Subject: Re: [Qemu-devel] [PATCH V8 2/7] nios2: Add architecture emulation support
Date: Mon, 16 Jan 2017 16:31:13 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

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

+static void nios2_cpu_disas_set_info(CPUState *cpu, disassemble_info
+    /* NOTE: NiosII R2 is not supported yet. */
+    info->mach = bfd_arch_nios2;
+    info->print_insn = print_insn_big_nios2;
+    info->print_insn = print_insn_little_nios2;

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]