*** tpb <[email protected]> has joined #openrisc | 00:00 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 03:22 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 03:58 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 04:53 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 04:59 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Remote host closed the connection) | 05:50 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 05:51 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 06:16 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 06:20 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 07:01 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 07:10 | |
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 08:40 | |
*** littlebo1eep is now known as littlebebeep | 08:40 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 08:42 | |
*** littlebebeep is now known as littlebobeep | 08:42 | |
zx2c4 | shorne_: i use qemu's -no-reboot | 11:15 |
---|---|---|
zx2c4 | so that it shuts off when the system reboots | 11:16 |
zx2c4 | this way I can have all the debugging options set to reboot on panic | 11:16 |
zx2c4 | very very helpful | 11:16 |
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 11:42 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 11:44 | |
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 12:13 | |
shorne_ | zx2c4: I see, let me look at how other arch's define "reboot' it doesnt seem to be part of semihosting | 12:15 |
shorne_ | on our litex soc's we have a csr register that we right to to reset the CPU | 12:15 |
shorne_ | riscv has a special, sifive_test hw module that implements exit/reboot for simulations (write to a memory mapped register) | 12:22 |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 12:59 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 13:12 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 17:23 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Remote host closed the connection) | 17:42 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 17:53 | |
zx2c4 | shorne_: any of those are fine | 18:03 |
zx2c4 | simulate real hardware, define virtual hardware, make up special nop instructions... | 18:04 |
zx2c4 | m68k just added a virtual device profile for 5.19 - https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git/commit/?h=for-next&id=05d51e42df06f0211c7029ab9aa46c492ee85043 | 18:04 |
tpb | Title: kernel/git/geert/linux-m68k.git - Linux/m68k Kernel Development Tree (at git.kernel.org) | 18:04 |
zx2c4 | You can see in https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git/tree/arch/m68k/virt/config.c?h=for-next&id=05d51e42df06f0211c7029ab9aa46c492ee85043 how they do reset/poweroff | 18:04 |
tpb | Title: config.c « virt « m68k « arch - kernel/git/geert/linux-m68k.git - Linux/m68k Kernel Development Tree (at git.kernel.org) | 18:04 |
zx2c4 | static void virt_halt(void) | 18:04 |
zx2c4 | { | 18:04 |
zx2c4 | void __iomem *base = (void __iomem *)virt_bi_data.ctrl.mmio; | 18:04 |
zx2c4 | iowrite32be(CMD_HALT, base + VIRT_CTRL_REG_CMD); | 18:04 |
zx2c4 | local_irq_disable(); | 18:04 |
zx2c4 | while (1) | 18:04 |
zx2c4 | ; | 18:04 |
zx2c4 | } | 18:04 |
zx2c4 | static void virt_reset(void) | 18:04 |
zx2c4 | { | 18:04 |
zx2c4 | void __iomem *base = (void __iomem *)virt_bi_data.ctrl.mmio; | 18:04 |
zx2c4 | iowrite32be(CMD_RESET, base + VIRT_CTRL_REG_CMD); | 18:04 |
zx2c4 | local_irq_disable(); | 18:04 |
zx2c4 | while (1) | 18:04 |
zx2c4 | ; | 18:04 |
zx2c4 | } | 18:04 |
zx2c4 | here it's a basic MMIO device | 18:05 |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 18:05 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 19:10 | |
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 19:23 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 19:24 | |
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 19:34 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 20:20 | |
shorne_ | zx2c4: yeah, my concern is I have to spec real hardware then model it. In the case of Laurant/Geerts patches its based on android goldfish. So it seems they just cherry-picked that without it being based on "real" hardware. | 20:35 |
shorne_ | https://git.qemu.org/?p=qemu.git;a=commit;h=e1cecdca559d552bc5ab282696301858a97c3e8c | 20:35 |
tpb | Title: git.qemu.org Git - qemu.git/commit (at git.qemu.org) | 20:35 |
shorne_ | So, maybe it't ok to just make it up | 20:35 |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 20:36 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 20:40 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 20:52 | |
shorne_ | also, that was inline with what I had wanted to do all along and define a new 'virt' hardware target | 20:57 |
shorne_ | I can just work on that now, I'll skip the semihosting/nop stuff | 20:57 |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 21:09 | |
shorne_ | well, or implement on ly the exit/restart operations for semihosting. | 21:12 |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 21:20 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 21:23 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 21:33 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 21:38 | |
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 21:39 | |
*** littlebo1eep <littlebo1eep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 21:46 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 21:46 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 21:48 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 22:22 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 22:26 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 22:32 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 22:36 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 23:00 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 23:03 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 23:10 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 23:16 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 23:32 | |
zx2c4 | shorne_: a whole 'virt' system could be a lot of work, but i guess it might allow you to incrementally work at adding a virtio bus which could be a fun whole separate projcet | 23:35 |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 23:35 | |
zx2c4 | so i don't know which rabbit holes are best t ojump down | 23:35 |
zx2c4 | the nop thing for shutdown and reset certainly feels like the simplest/shortest path for now | 23:36 |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC (Ping timeout: 240 seconds) | 23:41 | |
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #openrisc | 23:43 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!