Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Jiri Gaisler
On 2/4/19 8:00 AM, Chris Johns wrote: > On 3/2/19 8:38 pm, Jiri Gaisler wrote: >> From 72799748f8dca595f804dcf0efd566b3a88eb36e Mon Sep 17 00:00:00 2001 >> From: Jiri Gaisler >> Date: Sun, 3 Feb 2019 10:04:00 +0100 >> Subject: [PATCH] gdb: upgrade sis to 2.11 >> >> * support RISC-V extensio

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Jiri Gaisler
On 2/4/19 8:58 AM, Sebastian Huber wrote: > On 04/02/2019 08:00, Chris Johns wrote: >> Are you OK if I add this patch to: >> >>   https://devel.rtems.org/ticket/3460 >> >> as an attachment so I can create `rtems-gdb-8.2.1-1.cfg`? I ask because >> `bfin` >> is broken with gdb-8.0.1 (in the sim cod

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Jiri Gaisler
On 2/4/19 9:02 AM, Jiri Gaisler wrote: > On 2/4/19 8:00 AM, Chris Johns wrote: >> On 3/2/19 8:38 pm, Jiri Gaisler wrote: >>> From 72799748f8dca595f804dcf0efd566b3a88eb36e Mon Sep 17 00:00:00 2001 >>> From: Jiri Gaisler >>> Date: Sun, 3 Feb 2019 10:04:00 +0100 >>> Subject: [PATCH] gdb: upgrade si

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Sebastian Huber
On 04/02/2019 10:16, Jiri Gaisler wrote: On 2/4/19 9:02 AM, Jiri Gaisler wrote: On 2/4/19 8:00 AM, Chris Johns wrote: On 3/2/19 8:38 pm, Jiri Gaisler wrote: From 72799748f8dca595f804dcf0efd566b3a88eb36e Mon Sep 17 00:00:00 2001 From: Jiri Gaisler Date: Sun, 3 Feb 2019 10:04:00 +0100 Subject:

Re: Configuration checks in rtems-tools

2019-02-04 Thread Chris Johns
On 4/2/19 6:48 pm, Sebastian Huber wrote: > Hello, > > we have configuration checks (config_cc) in rtems-tools in three different > directories: > > rtemstoolkit/wscript > misc/wscript > tester/covoar/wscript > > Why can't we do the checks in the top-level wscript and use a single top-level > co

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Jiri Gaisler
On 2/4/19 10:23 AM, Sebastian Huber wrote: > On 04/02/2019 10:16, Jiri Gaisler wrote: >> On 2/4/19 9:02 AM, Jiri Gaisler wrote: >>> On 2/4/19 8:00 AM, Chris Johns wrote: On 3/2/19 8:38 pm, Jiri Gaisler wrote: >  From 72799748f8dca595f804dcf0efd566b3a88eb36e Mon Sep 17 00:00:00 2001 >

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Chris Johns
On 4/2/19 9:49 pm, Jiri Gaisler wrote: > > These two patches should be applied to gdb-8.2.1 to build sis for SPARC and > RISC-V: > > https://gaisler.se/gdb/gdb-8.2.1-riscv-config.patch > > https://gaisler.se/gdb/gdb-8.2.1-sis-2.11.patch > > I have tested building and running all RTEMS tests -

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Jiri Gaisler
On 2/4/19 8:00 AM, Chris Johns wrote: > On 3/2/19 8:38 pm, Jiri Gaisler wrote: >> From 72799748f8dca595f804dcf0efd566b3a88eb36e Mon Sep 17 00:00:00 2001 >> From: Jiri Gaisler >> Date: Sun, 3 Feb 2019 10:04:00 +0100 >> Subject: [PATCH] gdb: upgrade sis to 2.11 >> >> * support RISC-V extensio

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Chris Johns
On 4/2/19 9:02 pm, Jiri Gaisler wrote: > > On 2/4/19 10:23 AM, Sebastian Huber wrote: >> On 04/02/2019 10:16, Jiri Gaisler wrote: >>> On 2/4/19 9:02 AM, Jiri Gaisler wrote: On 2/4/19 8:00 AM, Chris Johns wrote: > On 3/2/19 8:38 pm, Jiri Gaisler wrote: >>  From 72799748f8dca595f804dcf0

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Joel Sherrill
On Mon, Feb 4, 2019 at 4:56 AM Chris Johns wrote: > On 4/2/19 9:49 pm, Jiri Gaisler wrote: > > > > These two patches should be applied to gdb-8.2.1 to build sis for SPARC > and RISC-V: > > > > https://gaisler.se/gdb/gdb-8.2.1-riscv-config.patch > > > > https://gaisler.se/gdb/gdb-8.2.1-sis-2.11.pa

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Chris Johns
On 5/2/19 1:59 am, Joel Sherrill wrote: > > Should we also bump binutils to the release (2.32) from last week?  > Have you tested them? :) Chris ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Joel Sherrill
On Mon, Feb 4, 2019 at 2:40 PM Chris Johns wrote: > On 5/2/19 1:59 am, Joel Sherrill wrote: > > > > Should we also bump binutils to the release (2.32) from last week? > > > > Have you tested them? :) > Everyone's a comedian. :) --joel > > Chris > ___

Re: [PATCH] Coverage: Add support for TSIM format

2019-02-04 Thread Chris Johns
On 1/2/19 10:47 pm, Vijay Kumar Banerjee wrote: > --- > tester/rt/coverage.py | 28 - > tester/rtems/testing/bsps/leon3-sis-cov.ini | 3 ++- > 2 files changed, 24 insertions(+), 7 deletions(-) > > diff --git a/tester/rt/coverage.py b/tester/rt/coverage.p

Re: [PATCH] Coverage : Add coverage support for RISCV

2019-02-04 Thread Chris Johns
On 2/2/19 1:49 am, Vijay Kumar Banerjee wrote: > --- > tester/covoar/TargetFactory.cc | 2 + > tester/covoar/Target_riscv.cc| 82 > tester/covoar/Target_riscv.h | 98 > tester/covoar/wscript

Re: RISC-V double float alignment

2019-02-04 Thread Chris Johns
On 2/2/19 6:53 am, Joel Sherrill wrote: > Then we should ensure proper alignment since we NEVER want an unaligned > exception on any architecture if it is avoidable. No point in taking the > likely > performance hit or exception.  Is this documented anywhere? It is an important issue because a p

Re: RISC-V double float alignment

2019-02-04 Thread Joel Sherrill
On Mon, Feb 4, 2019 at 5:07 PM Chris Johns wrote: > On 2/2/19 6:53 am, Joel Sherrill wrote: > > Then we should ensure proper alignment since we NEVER want an unaligned > > exception on any architecture if it is avoidable. No point in taking the > likely > > performance hit or exception. > > Is th

Re: [PATCH] Coverage : Add coverage support for RISCV

2019-02-04 Thread Joel Sherrill
The C++ looks OK. Being a RISC architecture, I am assuming that there is only one nop and it was easy to list all the branch variants. :) On Fri, Feb 1, 2019 at 8:53 AM Vijay Kumar Banerjee < vijaykumar9...@gmail.com> wrote: > --- > tester/covoar/TargetFactory.cc | 2 + > tester/c

Coverity Scan Not Accepting New Submissions for a While

2019-02-04 Thread Joel Sherrill
Hi Sebastian had pinged me to do a new Coverity Scan run. Hit this: "Coverity Scan is back up and running in read-only mode. This means you can access your previous scan projects. We have re-built Scan using a cloud platform that will reduce dependencies and hopefully improve overall performance.

[PATCH 03/11] powerpc/psim: Increase the psim memory to 256M

2019-02-04 Thread chrisj
From: Chris Johns This allows test dl09 to run and test PowePC backend trampoline support. Updates #3685 --- bsps/powerpc/psim/start/bspstart.c | 4 ++-- bsps/powerpc/psim/start/device-tree | 2 +- bsps/powerpc/psim/start/linkcmds| 7 ++- 3 files changed, 9 insertions(+), 4 deletions(-

[PATCH 04/11] libdl: Add symbol searching and loading from archives.

2019-02-04 Thread chrisj
From: Chris Johns - Load archive symbol tables to support searching of archives for symbols. - Search archive symbols and load the object file that contains the symbol. - Search the global and archives until all remaining unresolved symbols are not found. Group the loaded object files in th

[PATCH 01/11] libmisc: Fix rtems_print_buffer

2019-02-04 Thread chrisj
From: Chris Johns Closes #3684 --- cpukit/libmisc/dumpbuf/dumpbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libmisc/dumpbuf/dumpbuf.c b/cpukit/libmisc/dumpbuf/dumpbuf.c index a27d685f72..ed4868cdb4 100644 --- a/cpukit/libmisc/dumpbuf/dumpbuf.c +++ b/cpukit/libm

[PATCH 02/11] libdl: Fix dlerror non-conformance

2019-02-04 Thread chrisj
From: Chris Johns Closes #3298 --- cpukit/libdl/dlfcn.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpukit/libdl/dlfcn.c b/cpukit/libdl/dlfcn.c index 1d7164539b..b97078cbaa 100644 --- a/cpukit/libdl/dlfcn.c +++ b/cpukit/libdl/dlfcn.c @@ -129,7 +129,10 @@ const char*

[PATCH 05/11] libtests/dl02: Update the rtl-shell path.

2019-02-04 Thread chrisj
From: Chris Johns Updates #3686 --- testsuites/libtests/dl02/dl-load.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testsuites/libtests/dl02/dl-load.c b/testsuites/libtests/dl02/dl-load.c index a00581ab42..0fa897d5a0 100644 --- a/testsuites/libtests/dl02/dl-load.c +++ b/testsuites/libtes

Libdl support for library searching and load and large memory support.

2019-02-04 Thread chrisj
Hi, The patch series adds: - Archive or library searching for unresolved symbols loading the first object file that provdes the symbol. - Large memory support for architectures that use small relative branch instructions. - Libdl small data support for the PowerPC. - Increase the psim BSP

[PATCH 11/11] libdl: Add powerpc large memory and small data support.

2019-02-04 Thread chrisj
From: Chris Johns - Add support for architecure sections that can be handled by the architecture back end. - Add trampoline/fixup support for PowerPC. This means the PowerPC now supports large memory loading of applications. - Add a bit allocator to manage small block based regions of memor

[PATCH 07/11] libtest/dl08: Add a test for archives.

2019-02-04 Thread chrisj
From: Chris Johns - Create 2 archives. - Load 1 object file which loads 6 object files from the libraries. Updates #3686 --- cpukit/headers.am | 1 + testsuites/libtests/Makefile.am | 55 +++- testsuites/libtests/configure.ac | 1 + te

[PATCH 09/11] libdl: Add support for trampolines

2019-02-04 Thread chrisj
From: Chris Johns - Trampolines or fixups for veneers provide long jump support for instruciton sets that implement short relative address branches. The linker provides trampolines when creating a static image. This patch adds trampoline support to libdl and the ARM architecture. - The d

[PATCH 06/11] libtests/dl02: Update the rtl-shell path. More verbose test.

2019-02-04 Thread chrisj
From: Chris Johns Updates #3686 --- testsuites/libtests/dl07/dl-load.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/testsuites/libtests/dl07/dl-load.c b/testsuites/libtests/dl07/dl-load.c index 6e0262c7df..b0f8bd9dac 100644 --- a/testsuites/libtests

[PATCH 10/11] libdl: Add support for large memory programs

2019-02-04 Thread chrisj
From: Chris Johns - Add trampolines to support relocs that are out of range on support architectures. - Support not loading separate text/data sections in an object file if the symbol provided in the section is a duplicate. A base image may have pulled in part of an object and another pa

[PATCH 08/11] libdl: Fix the support for constructors and desctructors.

2019-02-04 Thread chrisj
From: Chris Johns - Fix the handling of pending objects. - Add a constructor flags in objects to track then being called. Closes #2921 --- cpukit/include/rtems/rtl/rtl-obj.h| 1 + cpukit/libdl/rtl-elf.c| 21 + cpukit/libdl/rtl-mdreloc-arm.c

Re: RISC-V double float alignment

2019-02-04 Thread Chris Johns
On 5/2/19 10:56 am, Joel Sherrill wrote: > On Mon, Feb 4, 2019 at 5:07 PM Chris Johns > wrote: > > On 2/2/19 6:53 am, Joel Sherrill wrote: > > Then we should ensure proper alignment since we NEVER want an unaligned > > exception on any architecture if it is av

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Chris Johns
On 4/2/19 9:49 pm, Jiri Gaisler wrote: > These two patches should be applied to gdb-8.2.1 to build sis for SPARC and > RISC-V: Thanks. > https://gaisler.se/gdb/gdb-8.2.1-riscv-config.patch > > https://gaisler.se/gdb/gdb-8.2.1-sis-2.11.patch I see in this patch `erc32` has been removed and repl

[PATCH] rtems/5: Update to gdb-8.2.2 with Jiri's SIS and RISCV patches.

2019-02-04 Thread chrisj
From: Chris Johns --- rtems/config/5/rtems-default.bset| 2 +- rtems/config/tools/rtems-gdb-8.2.1-1.cfg | 18 ++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 rtems/config/tools/rtems-gdb-8.2.1-1.cfg diff --git a/rtems/config/5/rtems-default.bset

[PATCH 4/4] rtemstoolkit/config: Unlock when printing to avoid blocking.

2019-02-04 Thread chrisj
From: Chris Johns --- tester/rt/config.py | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tester/rt/config.py b/tester/rt/config.py index 673c39b..457c0bd 100644 --- a/tester/rt/config.py +++ b/tester/rt/config.py @@ -46,6 +46,8 @@ from rtemstoolkit import execute

[PATCH 3/4] tester/check: Covert the indent size to an int.

2019-02-04 Thread chrisj
From: Chris Johns --- tester/rt/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tester/rt/check.py b/tester/rt/check.py index f81ee70..3bb24e3 100755 --- a/tester/rt/check.py +++ b/tester/rt/check.py @@ -304,7 +304,7 @@ class warnings_errors:

[PATCH 1/4] tester: Increase the psim memory size to match the BSP.

2019-02-04 Thread chrisj
From: Chris Johns --- tester/rtems/testing/bsps/psim-device-tree | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tester/rtems/testing/bsps/psim-device-tree b/tester/rtems/testing/bsps/psim-device-tree index 6049da4..d0b5f7c 100644 --- a/tester/rtems/testing/bsps/psim-device-

[PATCH 2/4] rtemstoolkit/execute: Print the trace exe command as a string and not list.

2019-02-04 Thread chrisj
From: Chris Johns --- rtemstoolkit/execute.py | 38 +- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/rtemstoolkit/execute.py b/rtemstoolkit/execute.py index d509664..35f616c 100755 --- a/rtemstoolkit/execute.py +++ b/rtemstoolkit/execute.py @

Re: [PATCH 11/11] libdl: Add powerpc large memory and small data support.

2019-02-04 Thread Sebastian Huber
On 05/02/2019 02:43, chr...@rtems.org wrote: + /* +* Set bsp_section_sdata_bss_maximum_size to 1 to use the maximum, eg: +* +* bsp_section_sdata_bss_maximum_size = 1; +*/ + bsp_section_sdata_bss_default_size = + DEFINED(bsp_section_sdata_

Re: Libdl support for library searching and load and large memory support.

2019-02-04 Thread Sebastian Huber
Hello Chris, On 05/02/2019 02:42, chr...@rtems.org wrote: Hi, The patch series adds: - Archive or library searching for unresolved symbols loading the first object file that provdes the symbol. - Large memory support for architectures that use small relative branch instructions. - Lib

Re: [PATCH 11/11] libdl: Add powerpc large memory and small data support.

2019-02-04 Thread Sebastian Huber
On 05/02/2019 07:19, Sebastian Huber wrote: On 05/02/2019 02:43, chr...@rtems.org wrote: +    /* + * Set bsp_section_sdata_bss_maximum_size to 1 to use the maximum, eg: + * + *  bsp_section_sdata_bss_maximum_size = 1; + */ +    bsp_section_sdata_bss_default_size = +    DEFI

Re: Libdl support for library searching and load and large memory support.

2019-02-04 Thread Chris Johns
On 5/2/19 5:27 pm, Sebastian Huber wrote: > Hello Chris, > > On 05/02/2019 02:42, chr...@rtems.org wrote: >> Hi, >> >> The patch series adds: >> >> - Archive or library searching for unresolved symbols loading the first >> object >> file >>    that provdes the symbol. >> >> - Large memory support

Re: Libdl support for library searching and load and large memory support.

2019-02-04 Thread Sebastian Huber
On 05/02/2019 08:36, Chris Johns wrote: Could you please check the PowerPC trampoline code ... https://git.rtems.org/chrisj/rtems.git/tree/cpukit/libdl/rtl-mdreloc-powerpc.c?h=libdl-epics-support#n169 Plus the other pieces of asm above I have added. Looks good, GNU ld uses addi instead of

Re: [PATCH] RSB/gdb: upgrade sis to 2.11

2019-02-04 Thread Sebastian Huber
On 04/02/2019 21:42, Joel Sherrill wrote: On Mon, Feb 4, 2019 at 2:40 PM Chris Johns > wrote: On 5/2/19 1:59 am, Joel Sherrill wrote: > > Should we also bump binutils to the release (2.32) from last week? > Have you tested them? :) Everyone's a