Re: [patch] Disassembly improvements

Yao Qi
2013-10-16T07:53:16Z

On 10/16/2013 09:16 AM, Doug Evans wrote:
> > If I were to try one, I think it would be along the lines of
> > a new TARGET_OBJECT_DISASM_MEMORY, and somehow pass more info down
> > the target_xfer interface so that the the core memory reading code
> > handles the caching. Probably, that'd be done with a new pair of
> > 'begin/end code caching' functions that would be called at the
> > appropriate places. The new code in dis_asm_read_memory would
> > then be pushed to target.c, close to where stack cache is handled.
>
> How hard would it be to do that now?

AFAICS, it is not hard. We've already had TARGET_OBJECT_STACK_MEMORY,
so it is straightforward to add TARGET_OBJECT_CODE_MEMORY, and disas and
skip_prologue can use it.

--
Yao (é½å°§)