View Single Post
Old 19 July 2018, 20:26   #105
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,546
Quote:
Originally Posted by alpine9000 View Post
I wonder why the behaviour is different when the debugger is running. I have a small chip ram data hunk in the executable.
Which is it? First you said AllocMem/AllocVec with MEMF_CHIP returns zero but now you talk about chip RAM hunks?

Chip RAM hunks are handled like it was using normal memory (they go to "debug ram") but extra emulator switch is activated that enables chip ram DMA to any RAM address.

If debugged program calls AllocMem/AllocVec (exec->ThisTask == debugged program), allocation comes from debug RAM except if MEMF_CHIP is set, which redirects call back to original function. (=invalid accesses are not detected)

MEMF_CHIP really should use separate "debug ram" region. Maybe later..
Toni Wilen is offline  
 
Page generated in 0.07128 seconds with 10 queries