sebastianbiallas / pearpc

PearPC - PowerPC Architecture Emulator
GNU General Public License v2.0
389 stars 70 forks source link

HOTFIX: cannot bind to packed field #28

Open jonathanschilling opened 2 years ago

jonathanschilling commented 2 years ago

Fixes #23 by cast to uint64& in ppc_fpu.cc and ppc_mmu.cc.

Reference for idea on how to fix this: https://stackoverflow.com/questions/27491432/why-cant-i-return-a-reference-to-a-packed-field#comment43418701_27491432

puellanivis commented 2 years ago

🤔 Do we even need to pack these fields? This is a singleton struct, so, it’s not like packing the fields would be saving us lots of memory, right?