Title: The trouble with literal pools (at benno.id.au)
shorne
it says literal pool, maybe completely different
cr1901_modern
it's using pc-relative addressing to access a constant value stored in the binary. It uses one less insn than mvi/mvlo
shorne
yeah
cr1901_modern
Ultimately, they both require the same amount of bytes tho; constant pools just move one of those 32-bit words to the data cache
what I was confused about is MIPS seems to use both mvhi/mvlo idiom and a constant pool to generate constants: sorear: GOT is needed *for code in shared libraries* because it's the only way to make interposition work
Title: gcc/mips.c at master · gcc-mirror/gcc · GitHub (at github.com)
cr1901_modern
Naturally I don't understand it, maybe someone who works on GCC has a better idea on how the MIPS backend decides which constant generation scheme to use
shorne
cr1901_modern: it seems gcc likes to use constant/linteral pools by default
Title: gcc/or1k.c at or1k-port · stffrdhrn/gcc · GitHub (at github.com)
shorne
(the comment says don't allow to use literal pool)
aze12 joined the channel
aze12 has quit
Anrky11 joined the channel
Anrky11 has quit
Maescool22 joined the channel
Maescool22 has quit
rohitksingh_work joined the channel
rohitksingh_wor1 joined the channel
rohitksingh_work has quit
hyadez has quit
rohitksingh_work joined the channel
rohitksingh_wor1 has quit
hyadez joined the channel
crankshaft_ joined the channel
crankshaft has quit
mithro
Just heading to the airport to go back to the US
peacefultom13 joined the channel
peacefultom13 has quit
sb0 joined the channel
toxync2121 joined the channel
Hazelesque10 joined the channel
Hazelesque10 has quit
toxync2121 has quit
iamdevnul3 joined the channel
iamdevnul3 has quit
jbmorris28911 joined the channel
jbmorris28911 has quit
shorne
CarlFK: spent some time tracing the kernel boot, it seems to not be running, it has failed during boot. What I thought was running was just a delay loop, not idle loop
brosef joined the channel
brosef has quit
xobs
shorne: Have you tried attaching a debugger?
...using qemu
Vaivars0 joined the channel
Vaivars0 has quit
sagebind29 joined the channel
sagebind29 has quit
mza17 joined the channel
mza17 has quit
shorne
xobs: yes, and I can trace it
but.. I cant read memory for some reason I get
.. Cannot access memory at address 0xc0452930
but maybe thats because everyting has crashed let me try to put a breakpoint before it crashes
no... I can set breakpoints but still cant read memory
something wrong with qemu/gdb
pmezard22 joined the channel
hmm, It looks like I can read memory when mmu is disabled