<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/target/ppc/cpu.c, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/target/ppc/cpu.c?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/target/ppc/cpu.c?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-10-28T16:15:22+00:00</updated>
<entry>
<title>target/ppc: introduce ppc_maybe_interrupt</title>
<updated>2022-10-28T16:15:22+00:00</updated>
<author>
<name>Matheus Ferst</name>
</author>
<published>2022-10-21T14:21:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=2fdedcbc69564f52a1c33bedfa291707e998a132'/>
<id>urn:sha1:2fdedcbc69564f52a1c33bedfa291707e998a132</id>
<content type='text'>
This new method will check if any pending interrupt was unmasked and
then call cpu_interrupt/cpu_reset_interrupt accordingly. Code that
raises/lowers or masks/unmasks interrupts should call this method to
keep CPU_INTERRUPT_HARD coherent with env-&gt;pending_interrupts.

Signed-off-by: Matheus Ferst &lt;matheus.ferst@eldorado.org.br&gt;
Reviewed-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
Message-Id: &lt;20221021142156.4134411-2-matheus.ferst@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: remove ppc_store_lpcr from CONFIG_USER_ONLY builds</title>
<updated>2022-10-28T16:15:22+00:00</updated>
<author>
<name>Matheus Ferst</name>
</author>
<published>2022-10-11T20:48:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6a8e8188c3c99e987e3d5b9df614a68a5d4bd1e0'/>
<id>urn:sha1:6a8e8188c3c99e987e3d5b9df614a68a5d4bd1e0</id>
<content type='text'>
Writes to LPCR are hypervisor privileged.

Signed-off-by: Matheus Ferst &lt;matheus.ferst@eldorado.org.br&gt;
Reviewed-by: Fabiano Rosas &lt;farosas@linux.ibm.com&gt;
Message-Id: &lt;20221011204829.1641124-27-matheus.ferst@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: Bugfix FP when OE/UE are set</title>
<updated>2022-08-31T17:08:05+00:00</updated>
<author>
<name>Lucas Mateus Castro (alqotel)</name>
</author>
<published>2022-08-05T14:15:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=08e185cadb24b038574dad676d4dae8488ba8b6e'/>
<id>urn:sha1:08e185cadb24b038574dad676d4dae8488ba8b6e</id>
<content type='text'>
When an overflow exception occurs and OE is set the intermediate result
should be adjusted (by subtracting from the exponent) to avoid rounding
to inf. The same applies to an underflow exceptionion and UE (but adding
to the exponent). To do this set the fp_status.rebias_overflow when OE
is set and fp_status.rebias_underflow when UE is set as the FPU will
recalculate in case of a overflow/underflow if the according rebias* is
set.

Signed-off-by: Lucas Mateus Castro (alqotel) &lt;lucas.araujo@eldorado.org.br&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20220805141522.412864-3-lucas.araujo@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: Remove fpscr_* macros from cpu.h</title>
<updated>2022-05-05T18:36:17+00:00</updated>
<author>
<name>Víctor Colombo</name>
</author>
<published>2022-05-04T21:05:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=208d803326416b43e51e3476826813869050a350'/>
<id>urn:sha1:208d803326416b43e51e3476826813869050a350</id>
<content type='text'>
fpscr_* defined macros are hiding the usage of *env behind them.
Substitute the usage of these macros with `env-&gt;fpscr &amp; FP_*` to make
the code cleaner.

Suggested-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Víctor Colombo &lt;victor.colombo@eldorado.org.br&gt;
Message-Id: &lt;20220504210541.115256-2-victor.colombo@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: ppc_store_fpscr doesn't update bits 0 to 28 and 52</title>
<updated>2021-12-17T16:57:13+00:00</updated>
<author>
<name>Lucas Mateus Castro (alqotel)</name>
</author>
<published>2021-12-17T16:57:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=25ee608d79c1890c0f4e8c495ec8629d5712de45'/>
<id>urn:sha1:25ee608d79c1890c0f4e8c495ec8629d5712de45</id>
<content type='text'>
This commit fixes the difference reported in the bug in the reserved
bit 52, it does this by adding this bit to the mask of bits to not be
directly altered in the ppc_store_fpscr function (the hardware used to
compare to QEMU was a Power9).

The bits 0 to 27 were also added to the mask, as they are marked as
reserved in the PowerISA and bit 28 is a reserved extension of the DRN
field (bits 29:31) but can't be set using mtfsfi, while the other DRN
bits may be set using mtfsfi instruction, so bit 28 was also added to
the mask.

Although this is a difference reported in the bug, since it's a reserved
bit it may be a "don't care" case, as put in the bug report. Looking at
the ISA it doesn't explicitly mention this bit can't be set, like it
does for FEX and VX, so I'm unsure if this is necessary.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/266
Signed-off-by: Lucas Mateus Castro (alqotel) &lt;lucas.araujo@eldorado.org.br&gt;
Message-Id: &lt;20211201163808.440385-4-lucas.araujo@eldorado.org.br&gt;
Signed-off-by: Cédric Le Goater &lt;clg@kaod.org&gt;
</content>
</entry>
<entry>
<title>linux-user: Fix XER access in ppc version of elf_core_copy_regs</title>
<updated>2021-10-21T00:42:47+00:00</updated>
<author>
<name>Matheus Ferst</name>
</author>
<published>2021-10-14T22:32:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=10de0521889d36633450e35b22f6a45ef856226d'/>
<id>urn:sha1:10de0521889d36633450e35b22f6a45ef856226d</id>
<content type='text'>
env-&gt;xer doesn't hold some bits of XER, like OV and CA. To write the
complete register in the core dump we should read XER value with
cpu_read_xer.

Reported-by: Lucas Mateus Castro (alqotel) &lt;lucas.araujo@eldorado.org.br&gt;
Fixes: da91a00f191f ("target-ppc: Split out SO, OV, CA fields from XER")
Signed-off-by: Matheus Ferst &lt;matheus.ferst@eldorado.org.br&gt;
Message-Id: &lt;20211014223234.127012-4-matheus.ferst@eldorado.org.br&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
</entry>
<entry>
<title>target/ppc: moved ppc_store_sdr1 to mmu_common.c</title>
<updated>2021-08-27T02:41:13+00:00</updated>
<author>
<name>Lucas Mateus Castro (alqotel)</name>
</author>
<published>2021-07-23T17:56:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=d6ae8ec6ef2635e521e89fc8708b84245cf00013'/>
<id>urn:sha1:d6ae8ec6ef2635e521e89fc8708b84245cf00013</id>
<content type='text'>
ppc_store_sdr1 was at first in mmu_helper.c and was moved as part
the patches to enable the disable-tcg option, now it's being moved
back to a file that will be compiled with that option

Signed-off-by: Lucas Mateus Castro (alqotel) &lt;lucas.araujo@eldorado.org.br&gt;
Message-Id: &lt;20210723175627.72847-3-lucas.araujo@eldorado.org.br&gt;
Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
</entry>
<entry>
<title>target/ppc: Allow virtual hypervisor on CPU without HV</title>
<updated>2021-07-09T00:38:19+00:00</updated>
<author>
<name>BALATON Zoltan</name>
</author>
<published>2021-06-27T16:27:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=5e994fc019862e77ee8fd2c8808c5fdcf2d249de'/>
<id>urn:sha1:5e994fc019862e77ee8fd2c8808c5fdcf2d249de</id>
<content type='text'>
Change the assert in ppc_store_sdr1() to allow vhyp to be set on CPUs
without HV bit. This allows using the vhyp interface for firmware
emulation on pegasos2.

Signed-off-by: BALATON Zoltan &lt;balaton@eik.bme.hu&gt;
Message-Id: &lt;21c7745aabbb68fcc50bb2ffaf16b939ba21261c.1624811233.git.balaton@eik.bme.hu&gt;
Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
</entry>
<entry>
<title>target/ppc: overhauled and moved logic of storing fpscr</title>
<updated>2021-06-03T08:10:31+00:00</updated>
<author>
<name>Bruno Larsen (billionai)</name>
</author>
<published>2021-05-27T16:35:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=fe43ba9721f36e47e09779682c3525659c6818f0'/>
<id>urn:sha1:fe43ba9721f36e47e09779682c3525659c6818f0</id>
<content type='text'>
Followed the suggested overhaul to store_fpscr logic, and moved it to
cpu.c where it can be accessed in !TCG builds.

The overhaul was suggested because storing a value to fpscr should
never raise an exception, so we could remove all the mess that happened
with POWERPC_EXCP_FP.

We also moved fpscr_set_rounding_mode into cpu.c as it could now be moved
there, and it is needed when a value for the fpscr is being stored
directly.

Suggested-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Bruno Larsen (billionai) &lt;bruno.larsen@eldorado.org.br&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20210527163522.23019-1-bruno.larsen@eldorado.org.br&gt;
Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
</entry>
<entry>
<title>target/ppc: moved ppc_store_lpcr and ppc_store_msr to cpu.c</title>
<updated>2021-06-03T03:22:06+00:00</updated>
<author>
<name>Bruno Larsen (billionai)</name>
</author>
<published>2021-05-21T20:17:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a3f5c315396b86468487f303a044b26801015090'/>
<id>urn:sha1:a3f5c315396b86468487f303a044b26801015090</id>
<content type='text'>
These functions are used in hw/ppc logic, during machine startup, which
means it must be compiled when --disable-tcg is selected, and so it has
been moved into a common code file

Signed-off-by: Bruno Larsen (billionai) &lt;bruno.larsen@eldorado.org.br&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Message-Id: &lt;20210521201759.85475-3-bruno.larsen@eldorado.org.br&gt;
Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
</entry>
</feed>
