mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-24 12:30:05 +00:00
Make XER update code inline & private.
This commit is contained in:
parent
49002860ed
commit
32e64fc1b2
@ -276,8 +276,6 @@ extern void ppc_store_result_rega();
|
||||
extern void ppc_store_sfpresult(bool int_rep);
|
||||
extern void ppc_store_dfpresult(bool int_rep);
|
||||
|
||||
void ppc_carry(uint32_t a, uint32_t b);
|
||||
void ppc_setsoov(uint32_t a, uint32_t b, uint32_t d);
|
||||
void ppc_changecrf0(uint32_t set_result);
|
||||
void ppc_fp_changecrf1();
|
||||
|
||||
|
@ -156,8 +156,8 @@ void ppc_changecrf0(uint32_t set_result) {
|
||||
}
|
||||
|
||||
//Affects the XER register's Carry Bit
|
||||
void ppc_carry(uint32_t a, uint32_t b) {
|
||||
if (b < a) { // TODO: ensure it works everywhere
|
||||
inline void ppc_carry(uint32_t a, uint32_t b) {
|
||||
if (b < a) {
|
||||
ppc_state.ppc_spr[SPR::XER] |= 0x20000000UL;
|
||||
}
|
||||
else {
|
||||
@ -166,7 +166,7 @@ void ppc_carry(uint32_t a, uint32_t b) {
|
||||
}
|
||||
|
||||
inline void ppc_carry_sub(uint32_t a, uint32_t b) {
|
||||
if (b >= a) { // TODO: ensure it works everywhere
|
||||
if (b >= a) {
|
||||
ppc_state.ppc_spr[SPR::XER] |= 0x20000000UL;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user