Re: What should a CPU simulator support?

Wenbo Yang
2007-07-05T02:30:40Z

> I'm trying to implement a gdb stub for a CPU simulator.
> The CPU simulator interprets each instruction in a big while loop.
> My question is: Is it enough for my simulator to support a single step
> run (simulate a single instruction per called) function to the gdb
> stub?
If your simulator supports "break" or similar instruction, and the GDB
for your architecture can do software single stepping, I think you can
realize this function.

Regards,
Wenbo
--
Wenbo Yang

Intern Software Engineer
SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor, Beijing, China
Phone: +86-10-5126-6989 --- Email: wenbo.yang@simplnano.com