Add HOSTLEGACY support.

This commit is contained in:
Danny Milosavljevic
2021-03-19 23:35:57 +01:00
parent 857bb5763d
commit 1c3529ad47
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -81,6 +81,9 @@ phase3_io_ficaa.svd: phase2_result.py phase3.py hexcalculator.py unroller.py rwo
phase3_io_abindex.svd: phase2_result.py phase3.py hexcalculator.py unroller.py rwops.py settings.py
./phase3.py -a -m IO -d FCH::AB::ABIndex $< > $@.new && mv $@.new $@
phase3_hostlegacy.svd: phase2_result.py phase3.py hexcalculator.py unroller.py rwops.py settings.py
./phase3.py -a -m HOSTLEGACY $< > $@.new && mv $@.new $@
phase3_msr.svd: phase2_result.py phase3.py hexcalculator.py unroller.py rwops.py settings.py
./phase3.py -m MSR $< > $@.new && mv $@.new $@
+4 -2
View File
@@ -107,8 +107,10 @@ elif selected_access_method == "SMN":
memory_map = []
elif selected_access_method == "SMNCCD":
_, memory_map = getattr(phase2_result, "Memory_Map___SMNCCD_Physical_Mnemonic_Namespace", ("", []))
elif selected_access_method == "IO":
memory_map = [] # TODO: fake all the IO things
elif selected_access_method == "IO" or selected_access_method == "HOSTLEGACY":
memory_map = [] # TODO: hard-code all the IO namespaces
elif selected_access_method == "HOSTLEGACY":
memory_map = []
assert memory_map is not None, "Memory map for access_method={!r}, data_port_write={!r}".format(selected_access_method, selected_data_port_write)