Re: [Qemu-devel] MIPS little endian - Bug when decoding physaddr

2017-06-23 Thread Vinicius Maciel
2017-06-23 17:21 GMT-03:00 Philippe Mathieu-Daudé : > Hi Vinicius, > > Looking at the RT5350 datasheet: > http://www.mouser.com/ds/2/813/RT5350-1022839.pdf > > pp.19> > 3.2 Memory Map Summary > 1000. - 1000.00FF 256 MbpsSYSCTL > 1011. - 1011.7FFF 32 KbpsEthernet switch > > pp.22>

Re: [Qemu-devel] MIPS little endian - Bug when decoding physaddr

2017-06-23 Thread Philippe Mathieu-Daudé
Hi Vinicius, On 06/23/2017 04:22 PM, Aurelien Jarno wrote: On 2017-06-23 15:14, Vinicius Maciel wrote: Hi everyone, I'm having a problem similar to the reported in this email, but now I'm trying to emulate a MIPS 24KEc, ralink RT5350F. Assembly Code: 0x802006a0 : lui t5,0xb011 0x802006a4 : or

Re: [Qemu-devel] MIPS little endian - Bug when decoding physaddr

2017-06-23 Thread Aurelien Jarno
On 2017-06-23 15:14, Vinicius Maciel wrote: > Hi everyone, > > I'm having a problem similar to the reported in this email, but now I'm > trying to emulate a MIPS 24KEc, > ralink RT5350F. > > Assembly Code: > 0x802006a0 : lui t5,0xb011 > 0x802006a4 : ori t5,t5,0x168 > 0x802006a8 : li t6,23 > 0x802

Re: [Qemu-devel] MIPS little endian - Bug when decoding physaddr

2017-06-23 Thread Vinicius Maciel
Hi everyone, I'm having a problem similar to the reported in this email, but now I'm trying to emulate a MIPS 24KEc, ralink RT5350F. Assembly Code: 0x802006a0 : lui t5,0xb011 0x802006a4 : ori t5,t5,0x168 0x802006a8 : li t6,23 0x802006ac : nop 0x802006b0 : sw t6,0(t5) <--- The instruction "sw t6,

Re: [Qemu-devel] MIPS little endian - Bug when decoding physaddr

2017-05-13 Thread Vinicius Maciel
Hi Philippe and Aurelien, You are right. I have created a simple SYSBUS using sysbus_create_simple at 0x1800 and now my read function works! Thanks for help. I am attaching my code if you are interested. Vinicius 2017-05-13 18:57 GMT-03:00 Philippe Mathieu-Daudé : > Hi Vinicius, > > On 201

Re: [Qemu-devel] MIPS little endian - Bug when decoding physaddr

2017-05-13 Thread Philippe Mathieu-Daudé
Hi Vinicius, On 2017-05-12 19:52, Vinicius Maciel wrote: Hi all, I'm trying to emulate a MIPS 74Kc using a custom machine in order to run a CFE bootloader from broadcom. The CPU is Broadcom BCM5357. The problem Here is your problem, there is no such model in QEMU. happens when Qemu calcula

Re: [Qemu-devel] MIPS little endian - Bug when decoding physaddr

2017-05-13 Thread Aurelien Jarno
On 2017-05-12 19:52, Vinicius Maciel wrote: > Hi all, > > I'm trying to emulate a MIPS 74Kc using a custom machine in order to run a > CFE bootloader from broadcom. The CPU is Broadcom BCM5357. The problem > happens when Qemu calculates physaddr inside io_readx(), cputlb.c:line 784 > > physaddr =

[Qemu-devel] MIPS little endian - Bug when decoding physaddr

2017-05-13 Thread Vinicius Maciel
Hi all, I'm trying to emulate a MIPS 74Kc using a custom machine in order to run a CFE bootloader from broadcom. The CPU is Broadcom BCM5357. The problem happens when Qemu calculates physaddr inside io_readx(), cputlb.c:line 784 physaddr = (physaddr & TARGET_PAGE_MASK) + addr; After run this lin