Re: Point where target instructions are read

2024-05-18 Thread Gautam Bhat
On Sun, Apr 14, 2024 at 2:21 AM Gautam Bhat wrote: > > Ah I had my .tlb_fill callback set to an empty function with just > returning true. I need to put the actual code there. Let me fill this > function up and see what happens. > > -Gautam. Got it working. I can see the opcode now. Let me procee

Re: Point where target instructions are read

2024-04-13 Thread Gautam Bhat
Ah I had my .tlb_fill callback set to an empty function with just returning true. I need to put the actual code there. Let me fill this function up and see what happens. -Gautam. On Thu, Apr 11, 2024 at 2:45 AM Gautam Bhat wrote: > > On Tue, Apr 9, 2024 at 2:23 PM Peter Maydell wrote: > > > Tha

Re: Point where target instructions are read

2024-04-10 Thread Gautam Bhat
On Tue, Apr 9, 2024 at 2:23 PM Peter Maydell wrote: > That sounds like a problem with your binary. If the reset vector > needs to be at 0xFFFE then it needs to be there, and you > should arrange for it to be built correctly. It doesn't matter > whether it's an ELF file or a raw binary file, the d

Re: Point where target instructions are read

2024-04-09 Thread Peter Maydell
On Mon, 8 Apr 2024 at 20:25, Gautam Bhat wrote: > > On Thu, Apr 4, 2024 at 2:23 PM Peter Maydell wrote: > > > This will not work (yet) -- CPUs do not get reset as part of the > > whole-system three-phase-reset, so using the exit phase method > > is not sufficient to avoid the reset ordering probl

Re: Point where target instructions are read

2024-04-08 Thread Gautam Bhat
On Thu, Apr 4, 2024 at 2:23 PM Peter Maydell wrote: > This will not work (yet) -- CPUs do not get reset as part of the > whole-system three-phase-reset, so using the exit phase method > is not sufficient to avoid the reset ordering problem here. > > You need to use rom_ptr_for_as() to see if ther

Re: Point where target instructions are read

2024-04-04 Thread Peter Maydell
On Wed, 3 Apr 2024 at 23:40, Richard Henderson wrote: > > On 4/3/24 08:15, Gautam Bhat wrote: > > Here simple_test.bin is the raw binary file converted using objcopy. > > addr=0xFFFE is the vector location where the PC will load with the > > starting address. > > > > Now how do I load the address

Re: Point where target instructions are read

2024-04-03 Thread Richard Henderson
On 4/3/24 08:15, Gautam Bhat wrote: On Tue, Apr 2, 2024 at 2:01 AM Richard Henderson wrote: The boot process must cooperate somehow. When using loader, you must link the image such that it loads at the pc reset address defined by the architecture manual. r~ I changed my loading options t

Re: Point where target instructions are read

2024-04-03 Thread BALATON Zoltan
On Wed, 3 Apr 2024, Gautam Bhat wrote: On Tue, Apr 2, 2024 at 2:01 AM Richard Henderson wrote: The boot process must cooperate somehow. When using loader, you must link the image such that it loads at the pc reset address defined by the architecture manual. r~ I changed my loading option

Re: Point where target instructions are read

2024-04-03 Thread Gautam Bhat
On Tue, Apr 2, 2024 at 2:01 AM Richard Henderson wrote: > The boot process must cooperate somehow. > > When using loader, you must link the image such that it loads at the pc reset > address > defined by the architecture manual. > > > r~ I changed my loading options to the following now to have

Re: Point where target instructions are read

2024-04-01 Thread Richard Henderson
On 4/1/24 09:50, Gautam Bhat wrote: Hi, Some background: I am trying to write a CPU emulator for MSP430 with Qemu. I am loading the MSP430 program as follows using the generic device loader: /qemu-system-msp430 -machine msp430-launchpad -device loader,file=simple_test -d in_asm,out_asm I have

Point where target instructions are read

2024-04-01 Thread Gautam Bhat
Hi, Some background: I am trying to write a CPU emulator for MSP430 with Qemu. I am loading the MSP430 program as follows using the generic device loader: /qemu-system-msp430 -machine msp430-launchpad -device loader,file=simple_test -d in_asm,out_asm I have implemented somewhat the TranslatorOps