--- nono/vm/mpu.cpp 2026/04/29 17:04:36 1.1.1.3 +++ nono/vm/mpu.cpp 2026/04/29 17:04:42 1.1.1.4 @@ -15,9 +15,23 @@ MPUDevice::MPUDevice() { logname = "mpu"; devname = "MPU"; + + // リセット例外を起こすイベント + // ハンドラは MPU ごとに異なるので継承クラス側で用意している + reset_event.dev = this; + reset_event.time = 0; + reset_event.SetName("MPU Reset"); } // デストラクタ MPUDevice::~MPUDevice() { } + +// リセット +void +MPUDevice::ResetHard() +{ + // 0 サイクル後にリセット例外を起こす + reset_event.Start(); +}