- Fixed memory leaks in cellRtc module.

- Fixed CPUThread crash.
- Improved ARMv7 Interpreter.
This commit is contained in:
DH 2013-11-09 14:25:12 +02:00
parent 3b15f35432
commit 6ea2c7d6a8
6 changed files with 949 additions and 729 deletions

View file

@ -59,7 +59,7 @@ bool ELF32Loader::LoadEhdrInfo()
return false;
}
entry = ehdr.GetEntry() & ~0x3;
entry = ehdr.GetEntry();
if(entry == 0)
{
ConLog.Error("elf32 error: entry is null!");
@ -86,10 +86,12 @@ bool ELF32Loader::LoadPhdrInfo()
phdr_arr.Move(phdr);
}
if(!Memory.IsGoodAddr(entry))
if(/*!Memory.IsGoodAddr(entry)*/ entry & 0x1)
{
//entry is physical, convert to virtual
entry &= ~0x1;
for(size_t i=0; i<phdr_arr.GetCount(); ++i)
{
if(phdr_arr[i].p_paddr >= entry && entry < phdr_arr[i].p_paddr + phdr_arr[i].p_memsz)