dev: Output invalid access size in IsaFake panic

This commit is contained in:
Curtis Dunham 2014-09-27 09:08:33 -04:00
parent b7f1d675da
commit 4836aef1e4

View file

@ -110,7 +110,7 @@ IsaFake::write(PacketPtr pkt)
data = pkt->get<uint8_t>(); data = pkt->get<uint8_t>();
break; break;
default: default:
panic("invalid access size!\n"); panic("invalid access size: %u\n", pkt->getSize());
} }
warn("Device %s accessed by write to address %#x size=%d data=%#x\n", warn("Device %s accessed by write to address %#x size=%d data=%#x\n",
name(), pkt->getAddr(), pkt->getSize(), data); name(), pkt->getAddr(), pkt->getSize(), data);