Re: [Qemu-devel] [RFC] target-arm: fix semihosting ram base issue

2016-06-24 Thread Tsung-Han Lin
2016-06-24 1:26 GMT+08:00 Peter Maydell : > On 17 June 2016 at 03:37, Tsung-Han Lin wrote: > > Hi, I made some changes to TRY TO fix the ARM semihosting issue in > > SYS_HEAPINFO handling. > > This problem has been bothering me for quite a while.

Re: [Qemu-devel] [RFC] target-arm: fix semihosting ram base issue

2016-06-24 Thread Peter Maydell
On 23 June 2016 at 18:26, Peter Maydell wrote: > I suggest you start by sending a patch which just fixes > the 64-bit case to write 64-bit values, since that's the > easy bit. I ran into this bug myself this afternoon, so I wrote some patches which fix this part and

Re: [Qemu-devel] [RFC] target-arm: fix semihosting ram base issue

2016-06-23 Thread Peter Maydell
On 17 June 2016 at 03:37, Tsung-Han Lin wrote: > Hi, I made some changes to TRY TO fix the ARM semihosting issue in > SYS_HEAPINFO handling. > This problem has been bothering me for quite a while. > > A new global variable 'main_ram_base' is added while a new memory > API,

Re: [Qemu-devel] [RFC] target-arm: fix semihosting ram base issue

2016-06-18 Thread Tsung-Han Lin
2016-06-18 14:57 GMT+09:00 Liviu Ionescu : > > > On 18 Jun 2016, at 01:22, Tsung-Han Lin wrote: > > > > ... It seems like to me that the issue is the default address assumed by > qemu, which is 0x0. > > (since Eclipse QEMU uses the same code, I believe

Re: [Qemu-devel] [RFC] target-arm: fix semihosting ram base issue

2016-06-18 Thread Liviu Ionescu
> On 18 Jun 2016, at 01:22, Tsung-Han Lin wrote: > > ... It seems like to me that the issue is the default address assumed by > qemu, which is 0x0. > (since Eclipse QEMU uses the same code, I believe they have the same problem.) it uses the same main code, but with many

Re: [Qemu-devel] [RFC] target-arm: fix semihosting ram base issue

2016-06-17 Thread Tsung-Han Lin
2016-06-18 1:22 GMT+09:00 Liviu Ionescu : > > > On 17 Jun 2016, at 05:37, Tsung-Han Lin wrote: > > > > Hi, I made some changes to TRY TO fix the ARM semihosting issue ... > > This problem has been bothering me for quite a while. > > semihosting was the

Re: [Qemu-devel] [RFC] target-arm: fix semihosting ram base issue

2016-06-17 Thread Liviu Ionescu
> On 17 Jun 2016, at 05:37, Tsung-Han Lin wrote: > > Hi, I made some changes to TRY TO fix the ARM semihosting issue ... > This problem has been bothering me for quite a while. semihosting was the first thing I fixed in GNU ARM Eclipse QEMU, and since then I use it

Re: [Qemu-devel] [RFC] target-arm: fix semihosting ram base issue

2016-06-17 Thread Tsung-Han Lin
2016-06-17 17:43 GMT+09:00 Peter Maydell : > On 17 June 2016 at 03:37, Tsung-Han Lin wrote: > > Hi, I made some changes to TRY TO fix the ARM semihosting issue in > > SYS_HEAPINFO handling. > > This problem has been bothering me for quite a while.

Re: [Qemu-devel] [RFC] target-arm: fix semihosting ram base issue

2016-06-17 Thread Peter Maydell
On 17 June 2016 at 03:37, Tsung-Han Lin wrote: > Hi, I made some changes to TRY TO fix the ARM semihosting issue in > SYS_HEAPINFO handling. > This problem has been bothering me for quite a while. > > A new global variable 'main_ram_base' is added while a new memory > API,

[Qemu-devel] [RFC] target-arm: fix semihosting ram base issue

2016-06-16 Thread Tsung-Han Lin
Hi, I made some changes to TRY TO fix the ARM semihosting issue in SYS_HEAPINFO handling. This problem has been bothering me for quite a while. A new global variable 'main_ram_base' is added while a new memory API, memory_region_add_subregion_main, is also provided to let SoC/board creator to