validation: show instruction when a trap occured

This commit is contained in:
folkert van heusden 2024-04-04 16:39:43 +02:00
parent f75293a9b0
commit 30a6c9229c
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -201,7 +201,7 @@ int run_cpu_validation(const std::string & filename)
if (err) {
if (c->is_it_a_trap())
DOLOG(warning, true, "Error by TRAP");
DOLOG(warning, true, "Error by TRAP %s", disas_data["instruction-text"].at(0).c_str());
else {
DOLOG(warning, true, "Error by instruction %s", disas_data["instruction-text"].at(0).c_str());
}