* RE: [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain.
@ 2021-04-19 3:33 rufus
0 siblings, 0 replies; 10+ messages in thread
From: rufus @ 2021-04-19 3:33 UTC (permalink / raw)
To: gdb-patches
On 19 Apr 2021 02:33, Jim Wilson wrote:
> Everything was written by SiFive and Andes employees, and both have
> corporate assignments that include gdb.
Behalf of Andes tech, I am OK with this patch set.
Thanks, Jim.
CONFIDENTIALITY NOTICE:
This e-mail (and its attachments) may contain confidential and legally privileged information or information protected from disclosure. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is strictly prohibited. In this case, please immediately notify the sender by return e-mail, delete the message (and any accompanying documents) and destroy all printed hard copies. Thank you for your cooperation.
Copyright ANDES TECHNOLOGY CORPORATION - All Rights Reserved.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain.
@ 2021-04-17 17:58 Jim Wilson
2021-04-17 20:38 ` Mike Frysinger via Gdb-patches
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Jim Wilson @ 2021-04-17 17:58 UTC (permalink / raw)
To: gdb-patches
These are mostly patches extracted from riscv-gnu-toolchain with minor
changes to apply to current FSF GDB sim. I was careful to maintain the
original author info, and the original commit logs when reasonable.
There are also a few extra patches from me added in, as I noticed some
problems when reviewing the patches, and debugging issues. Note that
Kito and Monk were at Andes when they wrote these patches, and are now
at SiFive. So this is mostly Andes work, and they should get credit
for this work. I kept their original email addresses even though they
won't work anymore. We will need permission from Andes to merge the
patches into FSF GDB. Hopefully Kuan-Lin can do that for us. The patches
from Palmer and myself were written at SiFive.
I tested this with a gcc make check using riscv-gnu-toolchain and pulling
in FSF GDB sim with my patches applied. I get 13 gcc unexpected failures
for rv32imac/ilp32 and 24 gcc unexpected failures for rv64gc/lp64d which
matches the old simulator port in riscv-gnu-toolchain. I did have one
problem with the GNUC code in mulhu function producing the wrong result,
but I think that is a bug in the Ubuntu 16.04 gcc-4.8 on my server. If
this is still broken with newer gcc versions I will take another look at
that.
This code can probably use some cleanup. I'd like to see the extensions
in canonical arch order for instance. But dealing with this many patches
is unwieldy, and I wanted to retain the original authorship for the
patches, so I'd rather do cleanup work as follow on patches.
Jim
Jim Wilson (6):
RISC-V sim: Fix fence.i.
RISC-V sim: More atomic fixes.
RISC-V sim: Fix ebreak, part 2.
RISC-V sim: Fix mingw builds.
RISC-V sim: Support compressed FP instructions.
RISC-V sim: Add zicsr support.
Kito Cheng (9):
RISC-V sim: Atomic fixes.
RISC-V sim: Fix syscall fallback.
RISC-V sim: Add csrr*i instructions.
RISC-V sim: Improve cycle and instret counts.
RISC-V sim: Check sbrk argument.
RISC-V sim: Improve branch tracing.
RISC-V sim: Improve tracing for slt* instructions.
RISC-V sim: Set brk to _end if possible.
RISC-V sim: Fix divw and remw.
Kuan-Lin Chen (5):
RISC-V sim: Fix stack pointer alignment.
RISC-V sim: Add link syscall support.
RISC-V sim: Add brk syscall.
RISC-V sim: Add gettimeofday.
RISC-V sim: Fix tracing typo.
Monk Chiang (3):
RISC-V: Add fp support.
RISC-V sim: Fix ebreak.
RISC-V sim: Add compressed support.
Palmer Dabbelt (1):
RISC-V sim: Fix for jalr.
sim/riscv/interp.c | 45 ++
sim/riscv/sim-main.c | 1790 ++++++++++++++++++++++++++++++++++++++++++++++----
sim/riscv/sim-main.h | 16 +-
3 files changed, 1733 insertions(+), 118 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain.
2021-04-17 17:58 Jim Wilson
@ 2021-04-17 20:38 ` Mike Frysinger via Gdb-patches
2021-04-19 2:33 ` Jim Wilson
2021-04-19 3:42 ` Mike Frysinger via Gdb-patches
2021-04-21 15:47 ` Andrew Burgess
2 siblings, 1 reply; 10+ messages in thread
From: Mike Frysinger via Gdb-patches @ 2021-04-17 20:38 UTC (permalink / raw)
To: Jim Wilson; +Cc: gdb-patches
On 17 Apr 2021 10:58, Jim Wilson wrote:
> These are mostly patches extracted from riscv-gnu-toolchain with minor
> changes to apply to current FSF GDB sim. I was careful to maintain the
> original author info, and the original commit logs when reasonable.
> There are also a few extra patches from me added in, as I noticed some
> problems when reviewing the patches, and debugging issues. Note that
> Kito and Monk were at Andes when they wrote these patches, and are now
> at SiFive. So this is mostly Andes work, and they should get credit
> for this work. I kept their original email addresses even though they
> won't work anymore. We will need permission from Andes to merge the
> patches into FSF GDB. Hopefully Kuan-Lin can do that for us. The patches
> from Palmer and myself were written at SiFive.
can you summarize author & company FSF assignments ? we'd need those before
we could/should review anything from them.
-mike
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain.
2021-04-17 20:38 ` Mike Frysinger via Gdb-patches
@ 2021-04-19 2:33 ` Jim Wilson
2021-04-19 3:23 ` Mike Frysinger via Gdb-patches
0 siblings, 1 reply; 10+ messages in thread
From: Jim Wilson @ 2021-04-19 2:33 UTC (permalink / raw)
To: Jim Wilson, gdb-patches
On Sat, Apr 17, 2021 at 1:38 PM Mike Frysinger <vapier@gentoo.org> wrote:
> can you summarize author & company FSF assignments ? we'd need those
> before
> we could/should review anything from them.
>
Everything was written by SiFive and Andes employees, and both have
corporate assignments that include gdb.
Jim
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain.
2021-04-19 2:33 ` Jim Wilson
@ 2021-04-19 3:23 ` Mike Frysinger via Gdb-patches
2021-04-19 4:32 ` Jim Wilson
0 siblings, 1 reply; 10+ messages in thread
From: Mike Frysinger via Gdb-patches @ 2021-04-19 3:23 UTC (permalink / raw)
To: Jim Wilson; +Cc: gdb-patches
On 18 Apr 2021 19:33, Jim Wilson wrote:
> On Sat, Apr 17, 2021 at 1:38 PM Mike Frysinger <vapier@gentoo.org> wrote:
> > can you summarize author & company FSF assignments ? we'd need those
> > before
> > we could/should review anything from them.
>
> Everything was written by SiFive and Andes employees, and both have
> corporate assignments that include gdb.
i don't follow this part then of your e-mail:
> We will need permission from Andes to merge the patches into FSF GDB.
if they have assignments in place, and the patches were released publicly,
then what is left ?
-mike
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain.
2021-04-19 3:23 ` Mike Frysinger via Gdb-patches
@ 2021-04-19 4:32 ` Jim Wilson
0 siblings, 0 replies; 10+ messages in thread
From: Jim Wilson @ 2021-04-19 4:32 UTC (permalink / raw)
To: Jim Wilson, gdb-patches
On Sun, Apr 18, 2021 at 8:23 PM Mike Frysinger <vapier@gentoo.org> wrote:
> i don't follow this part then of your e-mail:
> > We will need permission from Andes to merge the patches into FSF GDB.
>
Just because Andes has an assignment, doesn't mean that the code that they
write automatically becomes owned by the FSF. They have to agree to the
copyright transfer. This is implied when you submit a patch. But this is
not implied if someone other than the author submits the patch. So,
technically, I need permission from the original author (Andes) to submit
the code on their behalf. Kuan-Lin has given that permission. It is very
rare for this technicality to matter, but I'd rather be safe here.
I forgot one minor detail. Palmer was at SiFive when he wrote the one
patch I included, but he is now at Google. Since it is SiFive code I can
submit it.
Jim
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain.
2021-04-17 17:58 Jim Wilson
2021-04-17 20:38 ` Mike Frysinger via Gdb-patches
@ 2021-04-19 3:42 ` Mike Frysinger via Gdb-patches
2021-04-19 4:37 ` Jim Wilson
2021-04-21 15:47 ` Andrew Burgess
2 siblings, 1 reply; 10+ messages in thread
From: Mike Frysinger via Gdb-patches @ 2021-04-19 3:42 UTC (permalink / raw)
To: Jim Wilson; +Cc: gdb-patches
hmm, do you have push access ? or do you need me to merge them ?
-mike
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain.
2021-04-19 3:42 ` Mike Frysinger via Gdb-patches
@ 2021-04-19 4:37 ` Jim Wilson
0 siblings, 0 replies; 10+ messages in thread
From: Jim Wilson @ 2021-04-19 4:37 UTC (permalink / raw)
To: Jim Wilson, gdb-patches
On Sun, Apr 18, 2021 at 8:42 PM Mike Frysinger <vapier@gentoo.org> wrote:
> hmm, do you have push access ? or do you need me to merge them ?
>
I have write after approval access for gdb. I'm also still listed as the
aarch64 sim maintainer, from back when I was at Linaro, which is why I
recently committed a patch for that. But it is getting late here, so if
the patches have been approved I can commit them tomorrow.
Jim
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain.
2021-04-17 17:58 Jim Wilson
2021-04-17 20:38 ` Mike Frysinger via Gdb-patches
2021-04-19 3:42 ` Mike Frysinger via Gdb-patches
@ 2021-04-21 15:47 ` Andrew Burgess
2021-04-21 17:49 ` Andrew Burgess
2 siblings, 1 reply; 10+ messages in thread
From: Andrew Burgess @ 2021-04-21 15:47 UTC (permalink / raw)
To: Jim Wilson; +Cc: gdb-patches
* Jim Wilson <jimw@sifive.com> [2021-04-17 10:58:07 -0700]:
> These are mostly patches extracted from riscv-gnu-toolchain with minor
> changes to apply to current FSF GDB sim. I was careful to maintain the
> original author info, and the original commit logs when reasonable.
Maybe a silly question, but all of these authors do have an FSF
copyright assignment in place, right? And they did all agree to pass
this code over to the FSF, right?
I don't think we can assume that just because an assignment is in
place they choose to give this code over to FSF, it would depend upon
the context in which they originally posted the code.
Thanks,
Andrew
> There are also a few extra patches from me added in, as I noticed some
> problems when reviewing the patches, and debugging issues. Note that
> Kito and Monk were at Andes when they wrote these patches, and are now
> at SiFive. So this is mostly Andes work, and they should get credit
> for this work. I kept their original email addresses even though they
> won't work anymore. We will need permission from Andes to merge the
> patches into FSF GDB. Hopefully Kuan-Lin can do that for us. The patches
> from Palmer and myself were written at SiFive.
>
> I tested this with a gcc make check using riscv-gnu-toolchain and pulling
> in FSF GDB sim with my patches applied. I get 13 gcc unexpected failures
> for rv32imac/ilp32 and 24 gcc unexpected failures for rv64gc/lp64d which
> matches the old simulator port in riscv-gnu-toolchain. I did have one
> problem with the GNUC code in mulhu function producing the wrong result,
> but I think that is a bug in the Ubuntu 16.04 gcc-4.8 on my server. If
> this is still broken with newer gcc versions I will take another look at
> that.
>
> This code can probably use some cleanup. I'd like to see the extensions
> in canonical arch order for instance. But dealing with this many patches
> is unwieldy, and I wanted to retain the original authorship for the
> patches, so I'd rather do cleanup work as follow on patches.
>
> Jim
>
> Jim Wilson (6):
> RISC-V sim: Fix fence.i.
> RISC-V sim: More atomic fixes.
> RISC-V sim: Fix ebreak, part 2.
> RISC-V sim: Fix mingw builds.
> RISC-V sim: Support compressed FP instructions.
> RISC-V sim: Add zicsr support.
>
> Kito Cheng (9):
> RISC-V sim: Atomic fixes.
> RISC-V sim: Fix syscall fallback.
> RISC-V sim: Add csrr*i instructions.
> RISC-V sim: Improve cycle and instret counts.
> RISC-V sim: Check sbrk argument.
> RISC-V sim: Improve branch tracing.
> RISC-V sim: Improve tracing for slt* instructions.
> RISC-V sim: Set brk to _end if possible.
> RISC-V sim: Fix divw and remw.
>
> Kuan-Lin Chen (5):
> RISC-V sim: Fix stack pointer alignment.
> RISC-V sim: Add link syscall support.
> RISC-V sim: Add brk syscall.
> RISC-V sim: Add gettimeofday.
> RISC-V sim: Fix tracing typo.
>
> Monk Chiang (3):
> RISC-V: Add fp support.
> RISC-V sim: Fix ebreak.
> RISC-V sim: Add compressed support.
>
> Palmer Dabbelt (1):
> RISC-V sim: Fix for jalr.
>
> sim/riscv/interp.c | 45 ++
> sim/riscv/sim-main.c | 1790 ++++++++++++++++++++++++++++++++++++++++++++++----
> sim/riscv/sim-main.h | 16 +-
> 3 files changed, 1733 insertions(+), 118 deletions(-)
>
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain.
2021-04-21 15:47 ` Andrew Burgess
@ 2021-04-21 17:49 ` Andrew Burgess
0 siblings, 0 replies; 10+ messages in thread
From: Andrew Burgess @ 2021-04-21 17:49 UTC (permalink / raw)
To: Jim Wilson; +Cc: gdb-patches
* Andrew Burgess <andrew.burgess@embecosm.com> [2021-04-21 16:47:39 +0100]:
> * Jim Wilson <jimw@sifive.com> [2021-04-17 10:58:07 -0700]:
>
> > These are mostly patches extracted from riscv-gnu-toolchain with minor
> > changes to apply to current FSF GDB sim. I was careful to maintain the
> > original author info, and the original commit logs when reasonable.
>
> Maybe a silly question, but all of these authors do have an FSF
> copyright assignment in place, right? And they did all agree to pass
> this code over to the FSF, right?
>
> I don't think we can assume that just because an assignment is in
> place they choose to give this code over to FSF, it would depend upon
> the context in which they originally posted the code.
OK, I realise you actually already addressed this point. I don't know
how I didn't see this given it was on the very next line.
Apologies for the noise - it's been a long day :(
Thanks,
Andrew
>
> Thanks,
> Andrew
>
>
>
>
> > There are also a few extra patches from me added in, as I noticed some
> > problems when reviewing the patches, and debugging issues. Note that
> > Kito and Monk were at Andes when they wrote these patches, and are now
> > at SiFive. So this is mostly Andes work, and they should get credit
> > for this work. I kept their original email addresses even though they
> > won't work anymore. We will need permission from Andes to merge the
> > patches into FSF GDB. Hopefully Kuan-Lin can do that for us. The patches
> > from Palmer and myself were written at SiFive.
> >
> > I tested this with a gcc make check using riscv-gnu-toolchain and pulling
> > in FSF GDB sim with my patches applied. I get 13 gcc unexpected failures
> > for rv32imac/ilp32 and 24 gcc unexpected failures for rv64gc/lp64d which
> > matches the old simulator port in riscv-gnu-toolchain. I did have one
> > problem with the GNUC code in mulhu function producing the wrong result,
> > but I think that is a bug in the Ubuntu 16.04 gcc-4.8 on my server. If
> > this is still broken with newer gcc versions I will take another look at
> > that.
> >
> > This code can probably use some cleanup. I'd like to see the extensions
> > in canonical arch order for instance. But dealing with this many patches
> > is unwieldy, and I wanted to retain the original authorship for the
> > patches, so I'd rather do cleanup work as follow on patches.
> >
> > Jim
> >
> > Jim Wilson (6):
> > RISC-V sim: Fix fence.i.
> > RISC-V sim: More atomic fixes.
> > RISC-V sim: Fix ebreak, part 2.
> > RISC-V sim: Fix mingw builds.
> > RISC-V sim: Support compressed FP instructions.
> > RISC-V sim: Add zicsr support.
> >
> > Kito Cheng (9):
> > RISC-V sim: Atomic fixes.
> > RISC-V sim: Fix syscall fallback.
> > RISC-V sim: Add csrr*i instructions.
> > RISC-V sim: Improve cycle and instret counts.
> > RISC-V sim: Check sbrk argument.
> > RISC-V sim: Improve branch tracing.
> > RISC-V sim: Improve tracing for slt* instructions.
> > RISC-V sim: Set brk to _end if possible.
> > RISC-V sim: Fix divw and remw.
> >
> > Kuan-Lin Chen (5):
> > RISC-V sim: Fix stack pointer alignment.
> > RISC-V sim: Add link syscall support.
> > RISC-V sim: Add brk syscall.
> > RISC-V sim: Add gettimeofday.
> > RISC-V sim: Fix tracing typo.
> >
> > Monk Chiang (3):
> > RISC-V: Add fp support.
> > RISC-V sim: Fix ebreak.
> > RISC-V sim: Add compressed support.
> >
> > Palmer Dabbelt (1):
> > RISC-V sim: Fix for jalr.
> >
> > sim/riscv/interp.c | 45 ++
> > sim/riscv/sim-main.c | 1790 ++++++++++++++++++++++++++++++++++++++++++++++----
> > sim/riscv/sim-main.h | 16 +-
> > 3 files changed, 1733 insertions(+), 118 deletions(-)
> >
> > --
> > 2.7.4
> >
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-04-21 17:49 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19 3:33 [PATCH 00/24] RISC-V sim: Update from riscv-gnu-toolchain rufus
-- strict thread matches above, loose matches on Subject: below --
2021-04-17 17:58 Jim Wilson
2021-04-17 20:38 ` Mike Frysinger via Gdb-patches
2021-04-19 2:33 ` Jim Wilson
2021-04-19 3:23 ` Mike Frysinger via Gdb-patches
2021-04-19 4:32 ` Jim Wilson
2021-04-19 3:42 ` Mike Frysinger via Gdb-patches
2021-04-19 4:37 ` Jim Wilson
2021-04-21 15:47 ` Andrew Burgess
2021-04-21 17:49 ` Andrew Burgess
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox