On Wed, May 27, 2020 at 11:28:09PM -0600, Jason A. Donenfeld wrote:
> Hi Otto,
>
> On Wed, May 27, 2020 at 4:07 AM Otto Moerbeek <[email protected]> wrote:
> > Although I'm not terribly interested in bugs that are only seen (s0
> > far) using emulation, please send me the details on how you set up
> > qemu.
>
> Right, it could very well be a TCG bug. But maybe not. Here's how to
> get things [not-]working:
>
> $ qemu-system-sparc64 --version
> QEMU emulator version 5.0.0
> $ qemu-img convert -O qcow2 miniroot66.fs disk.qcow2
> $ qemu-img resize disk.qcow2 20G
> $ qemu-system-sparc64 \
> -machine sun4u \
> -m 1024 \
> -drive file=disk.qcow2,if=ide \
> -net nic,model=ne2k_pci -net user \
> -nographic -serial stdio -monitor none \
> -boot c
>
> OpenBIOS for Sparc64
> [...]
> Loading FCode image...
> Loaded 5840 bytes
> entry point is 0x4000
> Evaluating FCode...
> OpenBSD IEEE 1275 Bootblock 1.4
> ..>> OpenBSD BOOT 1.14
> Trying bsd...
> [...]
> OpenBSD 6.6 (RAMDISK) #84: Sat Oct 12 10:42:12 MDT 2019
> [email protected]:/usr/src/sys/arch/sparc64/compile/RAMDISK
> [...]
> Welcome to the OpenBSD/sparc64 6.6 installation program.
> (I)nstall, (U)pgrade, (A)utoinstall or (S)hell?
>
> If you swap out miniroot66.fs for miniroot67.fs, you'll get the error
> I sent prior.
>
> Jason
>
Does not work for me, error message on OpenBSD/amd64:
Could not allocate dynamic translator buffer
ktrace snippet:
74960 qemu-system-spar CALL mmap(0,0x40000000,0x7<PROT_READ|PROT_WRITE|PROT_EX
EC>,0x1002<MAP_PRIVATE|MAP_ANON>,-1,0)
74960 qemu-system-spar RET mmap -1 errno 91 Not supported
It's doing a RWX mapping, won't fly on OpenBSD.
-Otto