Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions proxyclient/m1n1/adt.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,13 @@
"info-*": SafeGreedyRange(Hex(Int32ul)),
},
},
# PMU nodes on M3 Ultra/M4 Max / macOS 15.6.1 are named "spmi-*"
"spmi-*": {
"pmu,spmi": {
"info-*name*": CString("ascii"),
"info-*": SafeGreedyRange(Hex(Int32ul)),
},
},
"stockholm-spmi": {
"*": {
"required-functions": ADTStringList,
Expand Down Expand Up @@ -703,6 +710,8 @@ def __iter__(self):

@property
def _reg_struct(self):
if not hasattr(self._parent, "address_cells") or not hasattr(self._parent, "size_cells"):
return Int32ul
ac, sc = self._parent.address_cells, self._parent.size_cells
return Struct(
"addr" / Hex(Int64ul) if ac == 2 else Array(ac, Hex(Int32ul)),
Expand Down
2 changes: 0 additions & 2 deletions proxyclient/m1n1/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

fb = u.ba.video.base

PMU(u).reset_panic_counter()

print(f"m1n1 base: 0x{u.base:x}")

PMU(u).reset_panic_counter()