#asahi · 2021-06-04 20:38
marcanjannau: fyi, “We shouldn’t support dual-booting because iBoot does” isn't a philosophical issue, it's a "your stuff is going to break SEP usage once we start supporting that properly" issue#asahi · 2021-06-04 20:33
marcanjannau: you can try hiding just one, if that's broken it shouldn't be too hard to fix#asahi · 2021-06-04 19:52
marcanshould be easy enough#asahi · 2021-06-04 19:52
marcansounds like a good first mmiotrace handler; i2c dumps#asahi · 2021-06-04 12:57
marcanright now it's kinda dumb#asahi · 2021-06-04 12:57
marcanyuyichao_: it will once I improve the vuart to support what linux needs#asahi · 2021-06-04 07:20
marcanthen the logic for update_fiq is IACT in the real register && macos has enabled FIQs#asahi · 2021-06-04 07:20
marcanyou can reenable it as soon as macos clears IACT#asahi · 2021-06-04 07:20
marcanand shadow that#asahi · 2021-06-04 07:20
marcanjannau: so just turn off irq delivery instead#asahi · 2021-06-04 07:03
marcan(and Capstone)#asahi · 2021-06-04 07:00
marcanmaybe Keystone?#asahi · 2021-06-04 06:59
marcanI should just figure out some other way of doing this than the current shellout hack...#asahi · 2021-06-04 06:58
marcana native gcc/binutils will work, but you need to pass ARCH= (empty) so it doesn't use the prefix if you don't have the prefixed tools in your PATH#asahi · 2021-06-04 06:53
marcanI guess right now it works because whenever the guest gets a timer irq it'll handle the pmc stuff too anyway#asahi · 2021-06-04 06:51
marcanalso the comment is out of date :)#asahi · 2021-06-04 06:51
marcanin hv_update_fiq#asahi · 2021-06-04 06:50
marcanyou also need to actually deliver the FIQ#asahi · 2021-06-04 06:49
marcan_jannau_: does that actually work? the reason I originally wanted to do it disabling FIQs was that I thought if you just cleared IACT it would come back unless the counters were cleared too, and then you'd end up in a fiq storm#asahi · 2021-06-04 06:48
marcanyeah we should just handle the PMC IRQs properly#asahi · 2021-06-04 06:48
marcanoh wait, they do#asahi · 2021-06-04 06:48
marcanbut those shouldn't end up in python?#asahi · 2021-06-04 06:48
marcanquite likely#asahi · 2021-06-04 06:46
marcando you have a stack trace? that shouldn't happen unless you get an exception#asahi · 2021-06-04 06:46
marcanyou need a crosscompiler for the disassembler to work#asahi · 2021-06-04 06:40
marcanah, fair :)#asahi · 2021-06-04 06:12
marcanjannau: btw, have you tried the "turn on on power failure" thing in the macos settings? it might make for a simpler hard reboot by momentarily removing power, instead of having to hold down the power button for a while#asahi · 2021-06-04 06:10
marcanpushed; `reboot` at the hypervisor console will now do a hard reboot and exit the script#asahi · 2021-06-04 06:01
marcanit's like 2 lines of code! you need to ask for these things!#asahi · 2021-06-04 05:59
marcanwhoops#asahi · 2021-06-04 05:59
marcan:-)#asahi · 2021-06-04 05:59
marcanactually wait, I don't actually have a proper reboot command do I#asahi · 2021-06-04 05:58
marcanclearly I need to make a script to automatically run linux.py under the hv and clean up the vuart so it works with the linux driver and then y'all have no excuse to just always run linux virtualized :) (okay I also should make SMP work)#asahi · 2021-06-04 05:57
marcanjannau: with the hv you can reboot by command (or it reboots itself if it crashes, with the wdt)#asahi · 2021-06-04 05:09
marcanit'll happen, but I want to prioritize getting the gpu and other kernel drivers on track#asahi · 2021-06-04 05:08
marcanbgb: it's kind of back burnered now that the dwc support in m1n1 and hypervisor make it largely unnecessary for people#asahi · 2021-06-03 15:24
marcanbetter than "two-machine" debugging#asahi · 2021-06-03 15:24
marcanthen just make hv.py provide a gdb stub on a socket :p#asahi · 2021-06-03 15:23
marcanjust need to actually implement using the debug hw to do single stepping/breakpoints/etc#asahi · 2021-06-03 15:23
marcanwell the hv is already almost a debugger#asahi · 2021-06-03 14:48
marcaneither that or just use the symbols to patch that debug break into a hvc and avoid the whole vector patching mess#asahi · 2021-06-03 14:47
marcanI only really used it for early debugging#asahi · 2021-06-03 14:47
marcanwould need a fast path to be usable with that turned on all the time#asahi · 2021-06-03 14:47
marcanthough right now it's dogslow because it all goes into python#asahi · 2021-06-03 14:46
marcanit eventually runs a debug break instruction and I catch that then decode the panic#asahi · 2021-06-03 14:46
marcanI already catch panics if you enable exception vector patching#asahi · 2021-06-03 14:38
marcanthat stuff's littered all over the irq masking primitives#asahi · 2021-06-03 14:38
marcanwhere instead of masking IRQs the normal way it changes the priority threshold#asahi · 2021-06-03 14:38
marcanthere's actually a whole funny GIC hack in Linux to do something NMI-ish#asahi · 2021-06-03 14:38
marcan:-)