CVMSEG Emulation

2022-12-14 Thread Christopher Wrogg
Was wondering if there was a follow up to this. Just a recap but I am trying to map 0x8000 - 0xBFFF into a userspace process's virtual address space. It falls squarely in KSEG3. Here is what I have tried Attempt 1 What I did: #undef TARGET_VIRT_ADDR_SPACE_BITS

Re: CVMSEG Emulation

2022-12-12 Thread Christopher Wrogg
I am getting the 48 bits value on 64 bit hosts. Having said that, I still have the two problems above with the suggested fixes. On Mon, Dec 12, 2022 at 7:03 AM Peter Maydell wrote: > On Fri, 9 Dec 2022 at 21:03, Jiaxun Yang wrote: > > > > > > > > > 2022年12月

Re: CVMSEG Emulation

2022-12-09 Thread Christopher Wrogg
ny value. Don’t know if it will break > anything, > AFAIK normal applications won't use this range. > > Thanks > - Jiaxun > > > > 2022年12月8日 15:08,Christopher Wrogg 写道: > > > > In userspace emulation how do I make a set of addresses always valid and > initia

CVMSEG Emulation

2022-12-08 Thread Christopher Wrogg
In userspace emulation how do I make a set of addresses always valid and initialized to 0 even though the process does not map it in? In particular I want to map

Re: [PATCH v2] Properly sign extend BBIT branch offset during calculation

2022-10-23 Thread Christopher Wrogg
I agree. Here is the corrected patch. Signed-off-by: Christopher Wrogg Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1251 --- target/mips/tcg/octeon.decode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/mips/tcg/octeon.decode b/target/mips/tcg/octeon.decode

[PATCH v2] Properly sign extend BBIT branch offset during calculation

2022-10-12 Thread Christopher Wrogg
The Octeon specific BBIT instruction incorrectly computes the branch offset. The 16 bit value is not sign extended. Signed-off-by: Christopher Wrogg Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1251 --- target/mips/tcg/octeon_translate.c | 5 - 1 file changed, 4 insertions(+), 1