Remove trailing whitespace.
This commit is contained in:
+6
-6
@@ -425,15 +425,15 @@ int PackPs1::buildLoader(const Filter *)
|
|||||||
#define IS_ADDIU(a) ((OPTYPE(a) == REGIMM && OPCODE(a) == ADDIU))
|
#define IS_ADDIU(a) ((OPTYPE(a) == REGIMM && OPCODE(a) == ADDIU))
|
||||||
#define IS_SW_ZERO(a) ((OPTYPE(a) == STORE && OPCODE(a) == SW) && REG2(a) == 0)
|
#define IS_SW_ZERO(a) ((OPTYPE(a) == STORE && OPCODE(a) == SW) && REG2(a) == 0)
|
||||||
|
|
||||||
#define BSS_CHK_LIMIT (18)
|
#define BSS_CHK_LIMIT (18)
|
||||||
|
|
||||||
bool PackPs1::findBssSection()
|
bool PackPs1::findBssSection()
|
||||||
{
|
{
|
||||||
unsigned char reg;
|
unsigned char reg;
|
||||||
LE32 *p1 = (LE32 *)(ibuf + (ih.epc - ih.tx_ptr));
|
LE32 *p1 = (LE32 *)(ibuf + (ih.epc - ih.tx_ptr));
|
||||||
|
|
||||||
if ((ih.epc - ih.tx_ptr + (BSS_CHK_LIMIT * 4)) > fdata_size)
|
if ((ih.epc - ih.tx_ptr + (BSS_CHK_LIMIT * 4)) > fdata_size)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// check 18 opcodes for sw zero,0(x)
|
// check 18 opcodes for sw zero,0(x)
|
||||||
for (signed i = BSS_CHK_LIMIT; i >= 0; i--)
|
for (signed i = BSS_CHK_LIMIT; i >= 0; i--)
|
||||||
@@ -620,7 +620,7 @@ void PackPs1::pack(OutputFile *fo)
|
|||||||
else
|
else
|
||||||
if (isCon)
|
if (isCon)
|
||||||
linker->defineSymbol("gb_e", linker->getSymbolOffset(is32Bit ? "gb32_e" : "gb8_e"));
|
linker->defineSymbol("gb_e", linker->getSymbolOffset(is32Bit ? "gb32_e" : "gb8_e"));
|
||||||
|
|
||||||
if (isCon)
|
if (isCon)
|
||||||
{
|
{
|
||||||
linker->defineSymbol("PAD", pad_code);
|
linker->defineSymbol("PAD", pad_code);
|
||||||
@@ -642,8 +642,8 @@ void PackPs1::pack(OutputFile *fo)
|
|||||||
memcpy(loader, getLoader(), lsize);
|
memcpy(loader, getLoader(), lsize);
|
||||||
patchPackHeader(loader, lsize);
|
patchPackHeader(loader, lsize);
|
||||||
|
|
||||||
if (!isCon && ph.method == M_LZMA && (HD_CODE_OFS + d_len + h_len) > CD_SEC)
|
if (!isCon && ph.method == M_LZMA && (HD_CODE_OFS + d_len + h_len) > CD_SEC)
|
||||||
throwInternalError("lzma --boot-only loader > 2048");
|
throwInternalError("lzma --boot-only loader > 2048");
|
||||||
|
|
||||||
// ps1_exe_t structure
|
// ps1_exe_t structure
|
||||||
fo->write(&oh, sizeof(oh));
|
fo->write(&oh, sizeof(oh));
|
||||||
|
|||||||
@@ -227,9 +227,9 @@
|
|||||||
ADDBITS
|
ADDBITS
|
||||||
FILLBYTES
|
FILLBYTES
|
||||||
2:
|
2:
|
||||||
ADDBITS_DONE
|
ADDBITS_DONE
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
;//////////////////////////////////////
|
;//////////////////////////////////////
|
||||||
@@ -276,7 +276,7 @@
|
|||||||
.endif
|
.endif
|
||||||
.else
|
.else
|
||||||
.ifc "\option", "sub_only"
|
.ifc "\option", "sub_only"
|
||||||
|
|
||||||
2:
|
2:
|
||||||
FILLBYTES
|
FILLBYTES
|
||||||
.ifnb label
|
.ifnb label
|
||||||
|
|||||||
Reference in New Issue
Block a user