Add e500 instructions dcblc, dcbtls and dcbtstl as no-op
PATCH 1/1 Add e500 instructions dcblc, dcbtls and dcbtstl as no-op
--- target-ppc/translate.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-)
target-ppc/translate.c +21 -0
@@ -3995,6 +3995,24 @@ static void gen_dcbt(DisasContext *ctx)*/ } +/* dcblc */ +static void gen_dcblc (DisasContext *ctx) +{ +/* interpreted as no-op */ +} + +/* dcbtls */ +static void gen_dcbtls (DisasContext *ctx) +{ +/* interpreted as no-op */ +} + +/* dcbtstls */ +static void gen_dcbtstls (DisasContext *ctx) +{ +/* interpreted as no-op */ +} +/* dcbtst */ static void gen_dcbtst (DisasContext *ctx) {
@@ -8404,6 +8422,9 @@ GEN_HANDLER(dcbi, 0x1F, 0x16, 0x0E, 0x03E00001, PPC_CACHE),GEN_HANDLER (dcbst,0x1F ,0x16 ,0x01 ,0x03E00001 ,PPC_CACHE ),GEN_HANDLER (dcbt,0x1F ,0x16 ,0x08 ,0x02000001 ,PPC_CACHE ),GEN_HANDLER (dcbtst,0x1F ,0x16 ,0x07 ,0x02000001 ,PPC_CACHE ), +GEN_HANDLER (dcblc,0x1F ,0x6 ,0x0C ,0x02000001 ,PPC_CACHE ), +GEN_HANDLER (dcbtls,0x1F ,0x6 ,0x05 ,0x02000001 ,PPC_CACHE ), +GEN_HANDLER (dcbtstls,0x1F ,0x6 ,0x04 ,0x02000001 ,PPC_CACHE ),GEN_HANDLER (dcbz,0x1F ,0x16 ,0x1F ,0x03E00001 ,PPC_CACHE_DCBZ ),GEN_HANDLER2 (dcbz_970,"dcbz" ,0x1F ,0x16 ,0x1F ,0x03C00001 ,PPC_CACHE_DCBZT ), GEN_HANDLER(dst, 0x1F, 0x16, 0x0A, 0x01800001, PPC_ALTIVEC),
Signature · 1 line
1.7.4.1
target-ppc/translate.c static void gen_dcbt(DisasContext *ctx) · line 4014
Quoted 11 lines · On Mon, 27 Jun 2011 15:15:55 +0200 Fabien Chouteau <[email protected]> wrote:
target-ppc/translate.c +11
-0+/* dcbtls */ +static void gen_dcbtls (DisasContext *ctx) +{ +/* interpreted as no-op */ +} + +/* dcbtstls */ +static void gen_dcbtstls (DisasContext *ctx) +{ +/* interpreted as no-op */ +}
Set L1CSR0[CUL] (unable to lock)?
-Scott
Quoted 16 lines · Scott Wood
target-ppc/translate.c static void gen_dcbt(DisasContext *ctx) · line 4014
Quoted 11 lines · On Mon, 27 Jun 2011 15:15:55 +0200 Fabien Chouteau <[email protected]> wrote:
target-ppc/translate.c +11
-0+/* dcbtls */ +static void gen_dcbtls (DisasContext *ctx) +{ +/* interpreted as no-op */ +} + +/* dcbtstls */ +static void gen_dcbtstls (DisasContext *ctx) +{ +/* interpreted as no-op */ +}Set L1CSR0[CUL] (unable to lock)?
Why do you want to set this bit? Can't we consider that the instruction is always effective?
Signature · 1 line
Fabien Chouteau
Quoted 18 lines · On Tue, 28 Jun 2011 10:17:39 +0200 Fabien Chouteau <[email protected]> wrote:
Quoted 16 lines · Scott Wood
target-ppc/translate.c static void gen_dcbt(DisasContext *ctx) · line 4014
Quoted 11 lines · On Mon, 27 Jun 2011 15:15:55 +0200 Fabien Chouteau <[email protected]> wrote:
target-ppc/translate.c +11
-0+/* dcbtls */ +static void gen_dcbtls (DisasContext *ctx) +{ +/* interpreted as no-op */ +} + +/* dcbtstls */ +static void gen_dcbtstls (DisasContext *ctx) +{ +/* interpreted as no-op */ +}Set L1CSR0[CUL] (unable to lock)?
Quoted 2 lines
Why do you want to set this bit? Can't we consider that the instruction is always effective?
But it's not. Why claim it is, in the absence of some specific workload that needs to be fooled (which could take many different forms, not all of which are appropriate defaults)?
-Scott
Quoted 21 lines · Scott Wood
Quoted 18 lines · On Tue, 28 Jun 2011 10:17:39 +0200 Fabien Chouteau <[email protected]> wrote:
Quoted 16 lines · Scott Wood
target-ppc/translate.c static void gen_dcbt(DisasContext *ctx) · line 4014
Quoted 11 lines · On Mon, 27 Jun 2011 15:15:55 +0200 Fabien Chouteau <[email protected]> wrote:
target-ppc/translate.c +11
-0+/* dcbtls */ +static void gen_dcbtls (DisasContext *ctx) +{ +/* interpreted as no-op */ +} + +/* dcbtstls */ +static void gen_dcbtstls (DisasContext *ctx) +{ +/* interpreted as no-op */ +}Set L1CSR0[CUL] (unable to lock)?
Quoted 6 lines
Quoted 2 lines
Why do you want to set this bit? Can't we consider that the instruction is always effective?
But it's not. Why claim it is, in the absence of some specific workload that needs to be fooled (which could take many different forms, not all of which are appropriate defaults)?
Reading the e500 manual again, it's not clear to me what can make the L1CSR0[CUL] to be set. If you have a better understanding, can you please explain?
Signature · 1 line
Fabien Chouteau
Quoted 7 lines · On Thu, 30 Jun 2011 10:25:31 +0200 Fabien Chouteau <[email protected]> wrote:
Quoted 6 lines · Scott Wood
Quoted 2 lines · On Tue, 28 Jun 2011 10:17:39 +0200 Fabien Chouteau <[email protected]> wrote:
Why do you want to set this bit? Can't we consider that the instruction is always effective?
Quoted 8 lines
Quoted 3 lines
But it's not. Why claim it is, in the absence of some specific workload that needs to be fooled (which could take many different forms, not all of which are appropriate defaults)?
Reading the e500 manual again, it's not clear to me what can make the L1CSR0[CUL] to be set. If you have a better understanding, can you please explain?
L1CSR0[CUL] is set whenever a lock set instruction fails to lock (typically because all ways of the set are already locked). Since we don't support cache locking in qemu, these instructions always fail, and thus CUL should always be set.
Regarding what behavior would maximize compatibility, while it's conceivable that some program could break if it sees the bit set when it was expecting to be able to succeed, also consider a program that might keep locking until it sees the bit set to determine how much cache it can lock.
-Scott
Quoted 24 lines · Scott Wood
Quoted 7 lines · On Thu, 30 Jun 2011 10:25:31 +0200 Fabien Chouteau <[email protected]> wrote:
Quoted 6 lines · Scott Wood
Quoted 2 lines · On Tue, 28 Jun 2011 10:17:39 +0200 Fabien Chouteau <[email protected]> wrote:
Why do you want to set this bit? Can't we consider that the instruction is always effective?
Quoted 8 lines
Quoted 3 lines
But it's not. Why claim it is, in the absence of some specific workload that needs to be fooled (which could take many different forms, not all of which are appropriate defaults)?
Reading the e500 manual again, it's not clear to me what can make the L1CSR0[CUL] to be set. If you have a better understanding, can you please explain?
L1CSR0[CUL] is set whenever a lock set instruction fails to lock (typically because all ways of the set are already locked). Since we don't support cache locking in qemu, these instructions always fail, and thus CUL should always be set.
Quoted 5 lines
Regarding what behavior would maximize compatibility, while it's conceivable that some program could break if it sees the bit set when it was expecting to be able to succeed, also consider a program that might keep locking until it sees the bit set to determine how much cache it can lock.
We could just keep an internal counter that memorizes how much memory is locked and sets the bit after exceeding the fake cache size.
The only problem I could see remaining is that CAR could potentially fail, as it can access addresses in cache directly that don't have to have underlying RAM mapped. However, I'd hope that only firmware does this and we usually don't execute real firmware in qemu :)
Also, lock set instructions seem to raise DSIs, so we need to generate some loads that don't go anywhere.
Alex
Quoted 1 line · On Thu, 30 Jun 2011 23:34:37 +0200 Alexander Graf <[email protected]> wrote:
We could just keep an internal counter that memorizes how much memory is locked and sets the bit after exceeding the fake cache size.
And keep track of unlocks, decrementing the counter only if the address was already locked... seems better to keep it simple and just be honest about the failure until a real need for trickery arises.
Quoted 1 line
The only problem I could see remaining is that CAR could potentially fail, as it can access addresses in cache directly that don't have to have underlying RAM mapped. However, I'd hope that only firmware does this and we usually don't execute real firmware in qemu :)
This is a case where it would be nice for the guest to see the failure indication, if we're lucky enough that it bothers to check.
But yeah, it's unlikely to happen outside of firmware.
Quoted 1 line
Also, lock set instructions seem to raise DSIs, so we need to generate some loads that don't go anywhere.
Yes.
Note that dcbtstls is treated as a store, which is a little trickier.
-Scott
Quoted 14 lines · Scott Wood
Quoted 1 line · On Thu, 30 Jun 2011 23:34:37 +0200 Alexander Graf <[email protected]> wrote:
We could just keep an internal counter that memorizes how much memory is locked and sets the bit after exceeding the fake cache size.
And keep track of unlocks, decrementing the counter only if the address was already locked... seems better to keep it simple and just be honest about the failure until a real need for trickery arises.
Quoted 1 line
The only problem I could see remaining is that CAR could potentially fail, as it can access addresses in cache directly that don't have to have underlying RAM mapped. However, I'd hope that only firmware does this and we usually don't execute real firmware in qemu :)
This is a case where it would be nice for the guest to see the failure indication, if we're lucky enough that it bothers to check.
Quoted 7 lines
But yeah, it's unlikely to happen outside of firmware.
Quoted 1 line
Also, lock set instructions seem to raise DSIs, so we need to generate some loads that don't go anywhere.
Yes.
Note that dcbtstls is treated as a store, which is a little trickier.
Not that much. It should be enough to simply do:
st(addr, ld(addr));
no?
Alex
Quoted 23 lines · On Thu, 30 Jun 2011 23:56:17 +0200 Alexander Graf <[email protected]> wrote:
Quoted 20 lines · Scott Wood
Quoted 1 line · On Thu, 30 Jun 2011 23:34:37 +0200 Alexander Graf <[email protected]> wrote:
We could just keep an internal counter that memorizes how much memory is locked and sets the bit after exceeding the fake cache size.
And keep track of unlocks, decrementing the counter only if the address was already locked... seems better to keep it simple and just be honest about the failure until a real need for trickery arises.
Quoted 1 line
The only problem I could see remaining is that CAR could potentially fail, as it can access addresses in cache directly that don't have to have underlying RAM mapped. However, I'd hope that only firmware does this and we usually don't execute real firmware in qemu :)
This is a case where it would be nice for the guest to see the failure indication, if we're lucky enough that it bothers to check.
But yeah, it's unlikely to happen outside of firmware.
Quoted 1 line
Also, lock set instructions seem to raise DSIs, so we need to generate some loads that don't go anywhere.
Yes.
Quoted 7 lines
Quoted 1 line
Note that dcbtstls is treated as a store, which is a little trickier.
Not that much. It should be enough to simply do:
st(addr, ld(addr));no?
Almost, but what if we have write permission but not read?
I assume races among threads are taken care of by some mechanism whereby qemu only takes an interrupt on target instruction boundaries (does/will qemu simulate guest SMP?), but what about a race with DMA from the I/O thread?
-Scott
Quoted 28 lines · Scott Wood
Quoted 25 lines · On Thu, 30 Jun 2011 23:56:17 +0200 Alexander Graf <[email protected]> wrote:
Quoted 21 lines · Scott Wood
Quoted 1 line · On Thu, 30 Jun 2011 23:34:37 +0200 Alexander Graf <[email protected]> wrote:
We could just keep an internal counter that memorizes how much memory is locked and sets the bit after exceeding the fake cache size.
And keep track of unlocks, decrementing the counter only if the address was already locked... seems better to keep it simple and just be honest about the failure until a real need for trickery arises.
Quoted 1 line
The only problem I could see remaining is that CAR could potentially fail, as it can access addresses in cache directly that don't have to have underlying RAM mapped. However, I'd hope that only firmware does this and we usually don't execute real firmware in qemu :)
This is a case where it would be nice for the guest to see the failure indication, if we're lucky enough that it bothers to check.
But yeah, it's unlikely to happen outside of firmware.
Quoted 1 line
Also, lock set instructions seem to raise DSIs, so we need to generate some loads that don't go anywhere.
Yes.
Note that dcbtstls is treated as a store, which is a little trickier.
Quoted 7 lines
Quoted 5 lines
Not that much. It should be enough to simply do:
st(addr, ld(addr));no?
Almost, but what if we have write permission but not read?
How would you write back data from a cache line when you haven't read it earlier?
Quoted 3 lines
I assume races among threads are taken care of by some mechanism whereby qemu only takes an interrupt on target instruction boundaries (does/will qemu simulate guest SMP?),
Qemu generates SMP by rescheduling guest CPUs on translation block boundaries. So instructions are always guaranteed to be atomic. Of course, that means only a single host CPU is used.
There has been some work by different people to get rid of that limitation, but so far none has proven to be generic enough.
Quoted 1 line
but what about a race with DMA from the I/O thread?
That'd simply be broken, but I don't quite see how it wouldn't with real hardware either :).
Alex
Quoted 6 lines · On Fri, 1 Jul 2011 00:18:22 +0200 Alexander Graf <[email protected]> wrote:
Quoted 1 line · Scott Wood
Almost, but what if we have write permission but not read?
How would you write back data from a cache line when you haven't read it earlier?
The CPU can read it. The program can't.
Quoted 3 lines
Quoted 1 line
but what about a race with DMA from the I/O thread?
That'd simply be broken, but I don't quite see how it wouldn't with real hardware either :).
Real hardware doesn't generate a load/store sequence that the program didn't ask for -- where's the breakage?
-Scott
Quoted 11 lines · Scott Wood
Quoted 6 lines · On Fri, 1 Jul 2011 00:18:22 +0200 Alexander Graf <[email protected]> wrote:
Quoted 1 line · Scott Wood
Almost, but what if we have write permission but not read?
How would you write back data from a cache line when you haven't read it earlier?
The CPU can read it. The program can't.
Hrm. We can always just call the check manually and trigger the respective interrupt :).
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
but what about a race with DMA from the I/O thread?
That'd simply be broken, but I don't quite see how it wouldn't with real hardware either :).
Real hardware doesn't generate a load/store sequence that the program didn't ask for -- where's the breakage?
Real hardware flushes whatever contents are in that cache line to RAM, no? So it would collide with the DMA just as much. Or am I missing something?
Alex
Quoted 9 lines · On Fri, 1 Jul 2011 00:28:19 +0200 Alexander Graf <[email protected]> wrote:
Quoted 6 lines · Scott Wood
Quoted 3 lines · On Fri, 1 Jul 2011 00:18:22 +0200 Alexander Graf <[email protected]> wrote:
On 01.07.2011, at 00:11, Scott Wood wrote:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Almost, but what if we have write permission but not read?
How would you write back data from a cache line when you haven't read it earlier?
The CPU can read it. The program can't.
Hrm. We can always just call the check manually and trigger the respective interrupt :).
Yep. A little trickier, but doable.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
but what about a race with DMA from the I/O thread?
That'd simply be broken, but I don't quite see how it wouldn't with real hardware either :).
Real hardware doesn't generate a load/store sequence that the program didn't ask for -- where's the breakage?
Real hardware flushes whatever contents are in that cache line to RAM, no? So it would collide with the DMA just as much. Or am I missing something?
If the DMA happens after the cache line is fetched, it'll be flushed, whether locked or not. But that's different from losing some of what the device wrote.
-Scott
Quoted 26 lines · Scott Wood
Quoted 9 lines · On Fri, 1 Jul 2011 00:28:19 +0200 Alexander Graf <[email protected]> wrote:
Quoted 6 lines · Scott Wood
Quoted 3 lines · On Fri, 1 Jul 2011 00:18:22 +0200 Alexander Graf <[email protected]> wrote:
On 01.07.2011, at 00:11, Scott Wood wrote:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Almost, but what if we have write permission but not read?
How would you write back data from a cache line when you haven't read it earlier?
The CPU can read it. The program can't.
Hrm. We can always just call the check manually and trigger the respective interrupt :).
Yep. A little trickier, but doable.
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
but what about a race with DMA from the I/O thread?
That'd simply be broken, but I don't quite see how it wouldn't with real hardware either :).
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Real hardware doesn't generate a load/store sequence that the program didn't ask for -- where's the breakage?
Real hardware flushes whatever contents are in that cache line to RAM, no? So it would collide with the DMA just as much. Or am I missing something?
If the DMA happens after the cache line is fetched, it'll be flushed, whether locked or not. But that's different from losing some of what the device wrote.
Ah, so DMA flushes even locked cache lines? Then it makes sense. Well, I guess the best choice here really is to merely do a manual storage protection check and be done with it.
Alex
Quoted 32 lines · Alexander Graf
Quoted 29 lines · Scott Wood
Quoted 9 lines · On Fri, 1 Jul 2011 00:28:19 +0200 Alexander Graf <[email protected]> wrote:
Quoted 6 lines · Scott Wood
Quoted 3 lines · On Fri, 1 Jul 2011 00:18:22 +0200 Alexander Graf <[email protected]> wrote:
On 01.07.2011, at 00:11, Scott Wood wrote:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Almost, but what if we have write permission but not read?
How would you write back data from a cache line when you haven't read it earlier?
The CPU can read it. The program can't.
Hrm. We can always just call the check manually and trigger the respective interrupt :).
Yep. A little trickier, but doable.
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
but what about a race with DMA from the I/O thread?
That'd simply be broken, but I don't quite see how it wouldn't with real hardware either :).
Real hardware doesn't generate a load/store sequence that the program didn't ask for -- where's the breakage?
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Real hardware flushes whatever contents are in that cache line to RAM, no? So it would collide with the DMA just as much. Or am I missing something?
If the DMA happens after the cache line is fetched, it'll be flushed, whether locked or not. But that's different from losing some of what the device wrote.
Ah, so DMA flushes even locked cache lines? Then it makes sense. Well, I guess the best choice here really is to merely do a manual storage protection check and be done with it.
Well, this is far beyond the scope of my knowledge of e500 and the current patch is sufficient for me, so I will let you implement this if you want to...
Signature · 1 line
Fabien Chouteau
Quoted 39 lines · Fabien Chouteau
Quoted 38 lines · Alexander Graf
Quoted 34 lines · Scott Wood
Quoted 9 lines · On Fri, 1 Jul 2011 00:28:19 +0200 Alexander Graf <[email protected]> wrote:
Quoted 6 lines · Scott Wood
Quoted 3 lines · On Fri, 1 Jul 2011 00:18:22 +0200 Alexander Graf <[email protected]> wrote:
On 01.07.2011, at 00:11, Scott Wood wrote:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Almost, but what if we have write permission but not read?
How would you write back data from a cache line when you haven't read it earlier?
The CPU can read it. The program can't.
Hrm. We can always just call the check manually and trigger the respective interrupt :).
Yep. A little trickier, but doable.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
but what about a race with DMA from the I/O thread?
That'd simply be broken, but I don't quite see how it wouldn't with real hardware either :).
Real hardware doesn't generate a load/store sequence that the program didn't ask for -- where's the breakage?
Real hardware flushes whatever contents are in that cache line to RAM, no? So it would collide with the DMA just as much. Or am I missing something?
If the DMA happens after the cache line is fetched, it'll be flushed, whether locked or not. But that's different from losing some of what the device wrote.
Quoted 5 lines
Quoted 2 lines
Ah, so DMA flushes even locked cache lines? Then it makes sense. Well, I guess the best choice here really is to merely do a manual storage protection check and be done with it.
Well, this is far beyond the scope of my knowledge of e500 and the current patch is sufficient for me, so I will let you implement this if you want to...
Well, all it needs is to call mmubooke206_get_physical_address on the address (or each page of the destination) with access_type set to write and check for the result. If it's protected, inject a DSI (see cpu_ppc_handle_mmu_fault).
But yeah, I can try and see if I get around to implementing it. No promises though. Do you have a test case I can verify this against?
Alex
Quoted 45 lines · Alexander Graf
Quoted 42 lines · Fabien Chouteau
Quoted 40 lines · Alexander Graf
Quoted 26 lines · Scott Wood
Quoted 9 lines · On Fri, 1 Jul 2011 00:28:19 +0200 Alexander Graf <[email protected]> wrote:
Quoted 6 lines · Scott Wood
Quoted 3 lines · On Fri, 1 Jul 2011 00:18:22 +0200 Alexander Graf <[email protected]> wrote:
On 01.07.2011, at 00:11, Scott Wood wrote:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Almost, but what if we have write permission but not read?
How would you write back data from a cache line when you haven't read it earlier?
The CPU can read it. The program can't.
Hrm. We can always just call the check manually and trigger the respective interrupt :).
Yep. A little trickier, but doable.
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
but what about a race with DMA from the I/O thread?
That'd simply be broken, but I don't quite see how it wouldn't with real hardware either :).
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Real hardware doesn't generate a load/store sequence that the program didn't ask for -- where's the breakage?
Real hardware flushes whatever contents are in that cache line to RAM, no? So it would collide with the DMA just as much. Or am I missing something?
If the DMA happens after the cache line is fetched, it'll be flushed, whether locked or not. But that's different from losing some of what the device wrote.
Ah, so DMA flushes even locked cache lines? Then it makes sense. Well, I guess the best choice here really is to merely do a manual storage protection check and be done with it.
Quoted 6 lines
Quoted 2 lines
Well, this is far beyond the scope of my knowledge of e500 and the current patch is sufficient for me, so I will let you implement this if you want to...
Well, all it needs is to call
mmubooke206_get_physical_addresson the address (or each page of the destination) withaccess_typeset to write and check for the result. If it's protected, inject a DSI (seecpu_ppc_handle_mmu_fault).But yeah, I can try and see if I get around to implementing it. No promises though. Do you have a test case I can verify this against?
No, I just implemented these no-oped instructions to get rid of an illegal instruction exception while running u-boot on my emulated p2010.
Signature · 1 line
Fabien Chouteau
Quoted 3 lines · On Fri, 1 Jul 2011 17:39:49 +0200 Fabien Chouteau <[email protected]> wrote:
No, I just implemented these no-oped instructions to get rid of an illegal instruction exception while running u-boot on my emulated p2010.
Heh, so someone *is* trying to run firmware. :-)
It would take a lot of low-level hardware simulation to get unmodified U-Boot to run -- probably not worth it unless your goal is an environment for debugging U-Boot.
It uses cache locking to create working space before the memory controller is initialized, so it's really expecting those instructions to work.
-Scott
Quoted 7 lines · Scott Wood
Quoted 3 lines · On Fri, 1 Jul 2011 17:39:49 +0200 Fabien Chouteau <[email protected]> wrote:
No, I just implemented these no-oped instructions to get rid of an illegal instruction exception while running u-boot on my emulated p2010.
Quoted 8 lines
Heh, so someone *is* trying to run firmware. :-)
It would take a lot of low-level hardware simulation to get unmodified U-Boot to run -- probably not worth it unless your goal is an environment for debugging U-Boot.
It uses cache locking to create working space before the memory controller is initialized, so it's really expecting those instructions to work.
It was mainly to test the correctness of emulation, but it appears that I have to implement more devices (eSPI, I2C, LBC...) than I initially thought.
Signature · 1 line
Fabien Chouteau