2021-06-10 13:34:29 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2021-11-10 07:35:21 +00:00
|
|
|
from m1n1.utils import irange
|
|
|
|
|
2021-06-10 13:34:29 +00:00
|
|
|
# Map the entire MMIO range as traceable
|
2021-11-10 07:35:21 +00:00
|
|
|
for r in hv.adt["/arm-io"].ranges:
|
|
|
|
trace_range(irange(r.parent_addr, r.size), mode=TraceMode.SYNC)
|
2021-06-10 13:34:29 +00:00
|
|
|
|
|
|
|
# Skip some noisy devices
|
|
|
|
try:
|
|
|
|
trace_device("/arm-io/usb-drd0", False)
|
|
|
|
except KeyError:
|
|
|
|
pass
|
|
|
|
try:
|
|
|
|
trace_device("/arm-io/usb-drd1", False)
|
|
|
|
except KeyError:
|
|
|
|
pass
|
2021-11-10 07:35:21 +00:00
|
|
|
try:
|
|
|
|
trace_device("/arm-io/uart2", False)
|
|
|
|
except KeyError:
|
|
|
|
pass
|
2021-06-10 13:34:29 +00:00
|
|
|
trace_device("/arm-io/error-handler", False)
|
|
|
|
trace_device("/arm-io/aic", False)
|
|
|
|
trace_device("/arm-io/spi1", False)
|
|
|
|
trace_device("/arm-io/pmgr", False)
|