Issue: The outputs of bochs and bochsdbg are different
Posted: Fri Aug 23, 2013 9:00 pm
I use memcpy and then display the copied data. In bochs, it works fine, but in bochsdbg(--enable-debugger), it outputs all zeros.
The Place to Start for Operating System Developers
http://f.osdev.org/
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.
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.