Skip to content

Commit 353f20e

Browse files
committed
[sw-sysemu] Erbium: WDT cold reset
Watchdog Timer on Erbium should perform cold reset on timeout (used to do warm reset).
1 parent 381ed5d commit 353f20e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sw-sysemu/devices/sysregs_er.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,9 @@ struct SysregsEr : public MemoryRegion {
120120

121121
void reset(ResetCause cause = ResetCause::NONE);
122122

123-
// Static watchdog timeout handler, triggers warm reset
123+
// Static watchdog timeout handler, triggers cold reset
124124
static void watchdog_timeout_handler(const Agent& agent) {
125-
for (unsigned s = 0; s < EMU_NUM_COMPUTE_SHIRES; ++s) {
126-
agent.chip->begin_warm_reset(s);
127-
}
125+
agent.chip->cold_reset();
128126
}
129127

130128
uint32_t read_register(const Agent& agent, uint64_t offset);

0 commit comments

Comments
 (0)