mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-12 02:59:51 +00:00
Workaround for VS 16.5
Strange codegen bug didn't promote s32 to u64.
This commit is contained in:
parent
4965bf7d7a
commit
5ebc538d7e
2 changed files with 6 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
version: '{build}'
|
version: '{build}'
|
||||||
|
|
||||||
image: Previous Visual Studio 2019
|
image: Visual Studio 2019
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
QTDIR: C:\Qt\5.14\msvc2017_64
|
QTDIR: C:\Qt\5.14\msvc2017_64
|
||||||
|
|
|
@ -1797,7 +1797,8 @@ void PPUTranslator::ADDIS(ppu_opcode_t op)
|
||||||
|
|
||||||
void PPUTranslator::BC(ppu_opcode_t op)
|
void PPUTranslator::BC(ppu_opcode_t op)
|
||||||
{
|
{
|
||||||
const u64 target = (op.aa ? 0 : m_addr) + op.bt14;
|
const s32 bt14 = op.bt14; // Workaround for VS 16.5
|
||||||
|
const u64 target = (op.aa ? 0 : m_addr) + bt14;
|
||||||
|
|
||||||
if (op.aa && m_reloc)
|
if (op.aa && m_reloc)
|
||||||
{
|
{
|
||||||
|
@ -1845,7 +1846,8 @@ void PPUTranslator::SC(ppu_opcode_t op)
|
||||||
|
|
||||||
void PPUTranslator::B(ppu_opcode_t op)
|
void PPUTranslator::B(ppu_opcode_t op)
|
||||||
{
|
{
|
||||||
const u64 target = (op.aa ? 0 : m_addr) + op.bt24;
|
const s32 bt24 = op.bt24; // Workaround for VS 16.5
|
||||||
|
const u64 target = (op.aa ? 0 : m_addr) + bt24;
|
||||||
|
|
||||||
if (op.aa && m_reloc)
|
if (op.aa && m_reloc)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue