I use memcpy and then display the copied data. In bochs, it works fine, but in bochsdbg(--enable-debugger), it outputs all zeros.
Issue: The outputs of bochs and bochsdbg are different
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Issue: The outputs of bochs and bochsdbg are different
I doubt that the debugger is the problem as the simulations run out of sync, which means you have other configuration/build differences as well.
Re: Issue: The outputs of bochs and bochsdbg are different
Sorry, I can't quitely understand your meaning of "run out of sync". And as for build, I use the same img file to run bochs. As for configuration, I use "--enable-smp" to compile "bochs", and use "--enable-smp --enable-debugger --enable-disasm" to compile "bochsdbg". I think the configuration should have no influence on output result.Combuster wrote:I doubt that the debugger is the problem as the simulations run out of sync, which means you have other configuration/build differences as well.
Re: Issue: The outputs of bochs and bochsdbg are different
With SMP enabled it is not quite right. The debugger enabled Bochs version doesn't schedule the emulated cores the same as the version without debugger - especially if you run debugger enabled code with 'step N' command and not 'continue'. Also for example trace chaining optimization currently is not supported with debugger and it affects order of execution in SMP.nbdd0121 wrote:Sorry, I can't quitely understand your meaning of "run out of sync". And as for build, I use the same img file to run bochs. As for configuration, I use "--enable-smp" to compile "bochs", and use "--enable-smp --enable-debugger --enable-disasm" to compile "bochsdbg". I think the configuration should have no influence on output result.Combuster wrote:I doubt that the debugger is the problem as the simulations run out of sync, which means you have other configuration/build differences as well.