Re: Qemu

2019-05-25 Thread Karel Gardas
Hi Peter, I think qemu on OpenBSD/macppc will not help you as this will be still using tcg IMHO. What you would need is something like Linux on PPC64 and running KVM there and then IMHO you will be able to run PPC code directly on CPU avoiding possible Qemu issues in PPC isns backend. See

Re: Qemu

2019-05-30 Thread Karel Gardas
Peter, thanks for the answer, however for me the most important bit is still mising. 1) how do you invoke qemu to load bsd? 2) how do you connect qemu and gdb in order to debug bsd? 3) how do you cross-compile to ppc64? -- see my next email about issues with cross-compilation. Thanks, K

cross-compilation amd64 -> ppc (macppc)

2019-05-30 Thread Karel Gardas
Hello, I'm trying to cross-compile (first cross-tools) on amd64 to macppc target. Since I've hit several issues along the way I'd first like to verify I'm doing it in expected way. Of course I'm on fairly recent -current (last week's code). What I do is: $ cd /usr/src $ doas make -f Makefil

Re: back at it, some question regarding PowerPC / ELF

2019-06-03 Thread Karel Gardas
Peter, seeing you writing about openfirmware, pmap.c etc. Have you investigated NetBSD's PS3 files? Tsubai Masanari was kind to my ask and made them available again on http://nandra.segv.jp/NetBSD/ps3/ Certainly some low level files like atomic.S, setjmp.S, pmap.c are there and may be at l