central-arch/pkg/sim/breakpoint.go
2024-11-01 11:54:59 +01:00

31 lines
350 B
Go

package sim
type CpuBreakpoint struct {
Addr uint32
}
type WatchpointType uint
const (
READ WatchpointType = iota
WRITE
READ_WRITE
)
type CpuWatchpoint struct {
Addr uint32
Type WatchpointType
}
type CpuModeTransitionBreakType uint
const (
NONE CpuModeTransitionBreakType = iota
ALL
USER
SUPERVISOR
FAULT
PRIVILEGED
UNPRIVILEGED
)