mirror of https://github.com/stella-emu/stella.git
Merge branch 'master' of https://github.com/stella-emu/stella
This commit is contained in:
commit
a5757a1562
|
@ -173,7 +173,7 @@ namespace {
|
||||||
{
|
{
|
||||||
if (!props) return SystemType::ntsc;
|
if (!props) return SystemType::ntsc;
|
||||||
|
|
||||||
string displayFormat = props->get(PropType::Display_Format);
|
const string displayFormat = props->get(PropType::Display_Format);
|
||||||
|
|
||||||
if(displayFormat == "PAL" || displayFormat == "SECAM") return SystemType::pal;
|
if(displayFormat == "PAL" || displayFormat == "SECAM") return SystemType::pal;
|
||||||
if(displayFormat == "PAL60") return SystemType::pal60;
|
if(displayFormat == "PAL60") return SystemType::pal60;
|
||||||
|
|
|
@ -166,7 +166,7 @@ ElfLinker::RelocatedSymbol ElfLinker::findRelocatedSymbol(string_view name) cons
|
||||||
if (!myRelocatedSymbols[i])
|
if (!myRelocatedSymbols[i])
|
||||||
ElfSymbolResolutionError::raise("symbol could not be relocated");
|
ElfSymbolResolutionError::raise("symbol could not be relocated");
|
||||||
|
|
||||||
return myRelocatedSymbols[i].value();
|
return myRelocatedSymbols[i].value(); // NOLINT: we know the value is valid
|
||||||
}
|
}
|
||||||
|
|
||||||
ElfSymbolResolutionError::raise("symbol not found");
|
ElfSymbolResolutionError::raise("symbol not found");
|
||||||
|
@ -423,7 +423,7 @@ void ElfLinker::copyInitArrays(vector<uInt32>& initArray, const std::unordered_m
|
||||||
void ElfLinker::applyRelocationToSection(const ElfFile::Relocation& relocation, size_t iSection)
|
void ElfLinker::applyRelocationToSection(const ElfFile::Relocation& relocation, size_t iSection)
|
||||||
{
|
{
|
||||||
const auto& targetSection = myElf.getSections()[iSection];
|
const auto& targetSection = myElf.getSections()[iSection];
|
||||||
const auto& targetSectionRelocated = myRelocatedSections[iSection].value();
|
const auto& targetSectionRelocated = myRelocatedSections[iSection].value(); // NOLINT
|
||||||
const auto& symbol = myElf.getSymbols()[relocation.symbol];
|
const auto& symbol = myElf.getSymbols()[relocation.symbol];
|
||||||
const auto& relocatedSymbol = myRelocatedSymbols[relocation.symbol];
|
const auto& relocatedSymbol = myRelocatedSymbols[relocation.symbol];
|
||||||
|
|
||||||
|
|
|
@ -144,14 +144,16 @@ uInt8 ElfParser::read8(uInt32 offset) const
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
uInt16 ElfParser::read16(uInt32 offset) const
|
uInt16 ElfParser::read16(uInt32 offset) const
|
||||||
{
|
{
|
||||||
return myBigEndian ? ((read8(offset) << 8) | read8(offset + 1))
|
return myBigEndian
|
||||||
|
? ((read8(offset) << 8) | read8(offset + 1))
|
||||||
: ((read8(offset + 1) << 8) | read8(offset));
|
: ((read8(offset + 1) << 8) | read8(offset));
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
uInt32 ElfParser::read32(uInt32 offset) const
|
uInt32 ElfParser::read32(uInt32 offset) const
|
||||||
{
|
{
|
||||||
return myBigEndian ? ((read8(offset) << 24) | (read8(offset + 1) << 16) |
|
return myBigEndian
|
||||||
|
? ((read8(offset) << 24) | (read8(offset + 1) << 16) |
|
||||||
(read8(offset + 2) << 8) | read8(offset + 3))
|
(read8(offset + 2) << 8) | read8(offset + 3))
|
||||||
: ((read8(offset + 3) << 24) | (read8(offset + 2) << 16) |
|
: ((read8(offset + 3) << 24) | (read8(offset + 2) << 16) |
|
||||||
(read8(offset + 1) << 8) | read8(offset));
|
(read8(offset + 1) << 8) | read8(offset));
|
||||||
|
|
|
@ -176,6 +176,7 @@ void VcsLib::vcsLda2(uInt8 value)
|
||||||
.injectROM(value);
|
.injectROM(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
CortexM0::err_t VcsLib::stackOperation(uInt16& value, uInt8& op, uInt8 opcode)
|
CortexM0::err_t VcsLib::stackOperation(uInt16& value, uInt8& op, uInt8 opcode)
|
||||||
{
|
{
|
||||||
myTransactionQueue
|
myTransactionQueue
|
||||||
|
|
Loading…
Reference in New Issue