Re: 回复: Why QEMU translates one instruction to a TB?

2020-09-18 Thread Alex Bennée
casmac writes: > Hello , > >   thanks for the hints. I modified one parameter of  > memory_region_init_ram() call ,and the slow-path problem disappeared. > >   What I did is , change the RAM size from the exact memory size needed > to hold the object file section(s), to the size that TI C3X

Re: Why QEMU translates one instruction to a TB?

2020-09-18 Thread Peter Maydell
On Fri, 18 Sep 2020 at 07:12, casmac wrote: > > Hello , > thanks for the hints. I modified one parameter of memory_region_init_ram() > call ,and the slow-path problem disappeared. > What I did is , change the RAM size from the exact memory size needed to > hold the object file section(s), t

?????? Why QEMU translates one instruction to a TB??

2020-09-17 Thread casmac
Hello ,   thanks for the hints. I modified one parameter of  memory_region_init_ram() call ,and the slow-path problem disappeared.   What I did is , change the RAM size from the exact memory size needed to hold the object file section(s), to the size that TI C3X user manual memory mapping sp

Re: Why QEMU translates one instruction to a TB?

2020-09-17 Thread Alex Bennée
casmac writes: > Hi all, >      We try to add DSP architecure to QEMU 4.2. To load the > COFF format object file, we have added loader code to load content from >   the object file. The rom_add_blob() function is used. We firstly > analyze the COFF file to figure out which sections are c

Re: Why QEMU translates one instruction to a TB?

2020-09-17 Thread Philippe Mathieu-Daudé
On 9/17/20 8:25 AM, casmac wrote: > Hi all, > ?0?2?0?2 ?0?2 We try to add DSP architecure to QEMU 4.2. To load the COFF > format > object file, we have added loader code to load content from > ?0?2 the object file. [...] > ?0?2 ?0?2 The COFF loader works functionally, but we then found that some

Re: Why QEMU translates one instruction to a TB?

2020-09-17 Thread Philippe Mathieu-Daudé
On 9/17/20 8:25 AM, casmac wrote: > Hi all, > ?0?2?0?2 ?0?2 We try to add DSP architecure to QEMU 4.2. To load the COFF > format > object file, we have added loader code to load content from > ?0?2 the object file. The rom_add_blob() function is used. We firstly > analyze the COFF file to figure o

Why QEMU translates one instruction to a TB??

2020-09-16 Thread casmac
Hi all,      We try to add DSP architecure to QEMU 4.2. To load the COFF format object file, we have added loader code to load content from   the object file. The rom_add_blob() function is used. We firstly analyze the COFF file to figure out which sections are chained   together(so each cha