# device_root_page_changes: 0x101c: reads back what was written; a new page tears the old root down (the FIFO is disabled, interrupt and fault bits cleared, 0x103c reads 0 with no FIFO), leaves the old page's task words as they were, and the FIFO must be enabled again on the new root; writing the same page again also tears down; 0 leaves no root, and a FIFO cannot be enabled. In the blocks setup each root is a root task: create_task and its mappings, destroy_task at teardown. {"op": "config", "ram": [["0x40000000", "0x4000000"]], "stamp_gpa": "0x40008000", "stamp_slots": 2, "watchdog_s": 30} {"label": "fresh", "off": "0x101c", "op": "mmio_r"} {"off": "0x101c", "op": "mmio_w", "val": "0x0"} {"label": "0 with no root", "off": "0x101c", "op": "mmio_r"} {"label": "0 with no root", "op": "events"} {"off": "0x1034", "op": "mmio_w", "val": "0xf5"} {"off": "0x101c", "op": "mmio_w", "val": "0x10001"} {"off": "0x1030", "op": "mmio_w", "val": "0x10002"} {"off": "0x1004", "op": "mmio_w", "val": "0x8000"} {"off": "0x1010", "op": "mmio_w", "val": "0x400"} {"off": "0x1000", "op": "mmio_w", "val": "0x1"} {"gpa": "0x4001c000", "hex": "05000180", "op": "mem"} {"gpa": "0x4001c004", "hex": "06000180", "op": "mem"} {"gpa": "0x40010000", "hex": "07000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"} {"gpa": "0x40008400", "hex": "380000001c0000000100000006000000008000000000000004000100", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x1c"} {"ge": "0x1", "gpa": "0x40008000", "label": "stamp 1 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"gpa": "0x4000841c", "hex": "1e0000000c00000002000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x28"} {"ge": "0x2", "gpa": "0x40008000", "label": "stamp 2 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40008428", "hex": "630000000c00000003000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x34"} {"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000} {"label": "a NOP and a fault", "op": "events"} {"off": "0x102c", "op": "mmio_r"} {"off": "0x103c", "op": "mmio_r"} {"label": "root word 3 set", "op": "diff"} {"off": "0x101c", "op": "mmio_w", "val": "0x10008"} {"label": "a new root page", "op": "events"} {"from": "0x1000", "label": "on the new root page", "op": "mmio_sweep", "step": 4, "to": "0x1040"} {"label": "the old root page after the change", "op": "diff"} {"off": "0x1000", "op": "mmio_w", "val": "0x1"} {"gpa": "0x40008400", "hex": "1e0000000c00000004000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0xc"} {"ge": "0x4", "gpa": "0x40008000", "label": "stamp 4 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"label": "a NOP on the new root", "op": "events"} {"from": "0x1000", "label": "the FIFO on the new root", "op": "mmio_sweep", "step": 4, "to": "0x1040"} {"off": "0x101c", "op": "mmio_w", "val": "0x10008"} {"label": "the same page again", "op": "events"} {"from": "0x1000", "label": "the same page again", "op": "mmio_sweep", "step": 4, "to": "0x1040"} {"off": "0x101c", "op": "mmio_w", "val": "0x0"} {"label": "root page 0", "op": "events"} {"from": "0x1000", "label": "root page 0", "op": "mmio_sweep", "step": 4, "to": "0x1040"} {"off": "0x1000", "op": "mmio_w", "val": "0x1"} {"label": "enable without a root", "off": "0x1000", "op": "mmio_r"} {"off": "0x101c", "op": "mmio_w", "val": "0x10001"} {"off": "0x1000", "op": "mmio_w", "val": "0x1"} {"label": "enable on the first page again", "off": "0x1000", "op": "mmio_r"} {"label": "back on the first page", "op": "events"} {"label": "after", "op": "diff"}