os x resolution only 800x600

2022-01-26 Thread chuck

Hi all

I installed ubuntu qemu and leopard on the virt disk

starting the powermac always displays 800x600.

startup command:

qemu-system-ppc -L pc-bios -boot c -M mac99,via=pmu -m 1024 -hda
macos.qcow2 -device VGA,edid=on -display gtk

i tried with

-display -vga

with  and without -device VGA,edid=on (both -display gtk / vga)

display preferences stay 800x600

switching to fullscreen does not change it

how can i change the display to 1920x1080.

thx for any help in this matter.

chuck




Re: os x resolution only 800x600

2022-01-26 Thread Pascal
hi,
may be with -device VGA,edid=on,xres=1280,yres=720
regards.

Le mer. 26 janv. 2022 à 13:53, chuck  a écrit :

> Hi all
>
> I installed ubuntu qemu and leopard on the virt disk
>
> starting the powermac always displays 800x600.
>
> startup command:
>
> qemu-system-ppc -L pc-bios -boot c -M mac99,via=pmu -m 1024 -hda
> macos.qcow2 -device VGA,edid=on -display gtk
>
> i tried with
>
> -display -vga
>
> with  and without -device VGA,edid=on (both -display gtk / vga)
>
> display preferences stay 800x600
>
> switching to fullscreen does not change it
>
> how can i change the display to 1920x1080.
>
> thx for any help in this matter.
>
> chuck
>
>
>


Re: Ast2600 emulation

2022-01-26 Thread abhijeet inamdar
How do we implement Hardware Semaphore (HSEM) in QEMU for this type?

Any suggestions.

BR.
Abhijeet.

On Wed, 15 Dec, 2021, 23:20 Philippe Mathieu-Daudé,  wrote:

> On 12/15/21 23:10, abhijeet inamdar wrote:
> > Thanks, I'll check it out.
> >
> > Can we do full system mode or qemu-sytem-arm ?
>
> You should be able to do full system emulation (qemu-system-arm)
> with 2 Cortex-A7 cores and 1 Cortex-M3 core.
>
> >
> > BR.
> > Abhijeet
> >
> > On Wed, 15 Dec, 2021, 22:38 Philippe Mathieu-Daudé,  > > wrote:
> >
> > On 12/15/21 22:24, abhijeet inamdar wrote:
> > > Hi,
> > >
> > > I was going through the aspeed ast2600(not evb) it has Dual-core
> > Arm A7
> > > and embedded M3. How can extend it/implementation in the existing
> one.
> > > 1) Is it possible ?
> >
> > Yes.
> >
> > > 2) How can I do it?
> >
> > Look at the Xilinx ZynqMP ZCU102 board (4xA53s and 2xR5Fs):
> > hw/arm/xlnx-zcu102.c
> >
>


Getting privilege level of an instruction in TCG plugin

2022-01-26 Thread Milind Luthra
Hi everyone,

We were writing a TCG plugin, and for every instruction executed, we wanted
to know the privilege level where it was executed, i.e. was it in user mode
or kernel mode.

Approaches we tried:

1. We tried to use vcpu_syscall_cb/vcpu_syscall_ret_cb initially - any
instruction execution between invocations of these functions would be
marked as being in kernel mode. However, these callbacks don't seem to be
called in Qemu's full system emulation, and in Qemu's user mode emulation,
we won't get any privileged instructions executing anyway. Also, we would
miss interrupts/pagefaults in this way.

2. We thought we could look up the registers which store the privilege
level for our guest (AArch64 - current program status register). But, from
reading the code and from a previous qemu-devel mailing list thread "Qemu
TCG Plugins - how to access guest registers" , we saw that registers are
not readable from plugins either.

Is there a way to do this in the plugin API?

Thank you,
Milind
PS: I asked earlier in qemu-devel 4-5 days ago, but it seems like this
mailing list would be more suited.