[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2024-05-14 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=454346

--- Comment #11 from Paul Floyd  ---
(In reply to Khem Raj from comment #10)

> Hmm, I think we need to use -march=armv7ve instead of -mcpu=cortex-a8, I did
> realize that all distros
> will not tune the compiler like yocto does.

The build and tests need to run with just autogen.sh, configure (without
compiler options), make, make check and make regtest.

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2024-05-14 Thread Khem Raj
https://bugs.kde.org/show_bug.cgi?id=454346

--- Comment #10 from Khem Raj  ---
(In reply to Paul Floyd from comment #9)
> On my RPi 5 with Raspberry Pi OS
> Linux raspberrypi 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1
> (2024-01-25) aarch64 GNU/Linux
> 
> Build fails with
> 
> m_dispatch/dispatch-arm-linux.S:102: Error: selected processor does not
> support `movw r1,#47' in ARM mode
> m_dispatch/dispatch-arm-linux.S:103: Error: selected processor does not
> support `movw r2,#0' in ARM mode
> m_dispatch/dispatch-arm-linux.S:155: Error: selected processor does not
> support `movw r4,#:lower16:vgPlain_stats__n_xIndirs_32' in ARM mode
> m_dispatch/dispatch-arm-linux.S:156: Error: selected processor does not
> support `movt r4,#:upper16:vgPlain_stats__n_xIndirs_32' in ARM mode
> m_dispatch/dispatch-arm-linux.S:173: Error: selected processor does not
> support `ubfx r6,r6,#0,#13' in ARM mode
> m_dispatch/dispatch-arm-linux.S:176: Error: selected processor does not
> support `movw r4,#:lower16:vgPlain_tt_fast' in ARM mode
> m_dispatch/dispatch-arm-linux.S:177: Error: selected processor does not
> support `movt r4,#:upper16:vgPlain_tt_fast' in ARM mode
> m_dispatch/dispatch-arm-linux.S:204: Error: selected processor does not
> support `movw r4,#:lower16:vgPlain_stats__n_xIndir_hits1_32' in ARM mode
> m_dispatch/dispatch-arm-linux.S:205: Error: selected processor does not
> support `movt r4,#:upper16:vgPlain_stats__n_xIndir_hits1_32' in ARM mode
> m_dispatch/dispatch-arm-linux.S:226: Error: selected processor does not
> support `movw r4,#:lower16:vgPlain_stats__n_xIndir_hits2_32' in ARM mode
> m_dispatch/dispatch-arm-linux.S:227: Error: selected processor does not
> support `movt r4,#:upper16:vgPlain_stats__n_xIndir_hits2_32' in ARM mode
> m_dispatch/dispatch-arm-linux.S:248: Error: selected processor does not
> support `movw r4,#:lower16:vgPlain_stats__n_xIndir_hits3_32' in ARM mode
> m_dispatch/dispatch-arm-linux.S:249: Error: selected processor does not
> support `movt r4,#:upper16:vgPlain_stats__n_xIndir_hits3_32' in ARM mode
> m_dispatch/dispatch-arm-linux.S:258: Error: selected processor does not
> support `movw r4,#:lower16:vgPlain_stats__n_xIndir_misses_32' in ARM mode
> m_dispatch/dispatch-arm-linux.S:259: Error: selected processor does not
> support `movt r4,#:upper16:vgPlain_stats__n_xIndir_misses_32' in ARM mode
> 
> and also
> 
> gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../include -I../VEX/pub
> -I../VEX/pub -DVGA_arm=1 -DVGO_linux=1 -DVGP_arm_linux=1
> -DVGPV_arm_linux_vanilla=1-O2 -g -Wall -Wmissing-prototypes -Wshadow
> -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-qual
> -Wwrite-strings -Wempty-body -Wformat -Wformat-signedness -Wformat-security
> -Wignored-qualifiers -Wmissing-parameter-type -Wlogical-op -Wenum-conversion
> -Wimplicit-fallthrough=2 -Wold-style-declaration -finline-functions
> -fno-stack-protector -fno-strict-aliasing -fno-builtin   -marm -O2  -MT
> memcheck_arm_linux-mc_main.o -MD -MP -MF
> .deps/memcheck_arm_linux-mc_main.Tpo -c -o memcheck_arm_linux-mc_main.o
> `test -f 'mc_main.c' || echo './'`mc_main.c
> /tmp/ccY1NRlM.s: Assembler messages:
> /tmp/ccY1NRlM.s:27: Error: selected processor does not support `movw
> r3,#:lower16:primary_map' in ARM mode
> /tmp/ccY1NRlM.s:29: Error: selected processor does not support `movt
> r3,#:upper16:primary_map' in ARM mode
> /tmp/ccY1NRlM.s:68: Error: selected processor does not support `movw
> r3,#:lower16:primary_map' in ARM mode
> /tmp/ccY1NRlM.s:70: Error: selected processor does not support `movt
> r3,#:upper16:primary_map' in ARM mode
> 
> gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../include -I../VEX/pub
> -I../VEX/pub -DVGA_arm=1 -DVGO_linux=1 -DVGP_arm_linux=1
> -DVGPV_arm_linux_vanilla=1-O2 -g -Wall -Wmissing-prototypes -Wshadow
> -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-qual
> -Wwrite-strings -Wempty-body -Wformat -Wformat-signedness -Wformat-security
> -Wignored-qualifiers -Wmissing-parameter-type -Wlogical-op -Wenum-conversion
> -Wimplicit-fallthrough=2 -Wold-style-declaration -finline-functions
> -fno-stack-protector -fno-strict-aliasing -fno-builtin   -marm -O2  -MT
> memcheck_arm_linux-mc_main_asm.o -MD -MP -MF
> .deps/memcheck_arm_linux-mc_main_asm.Tpo -c -o
> memcheck_arm_linux-mc_main_asm.o `test -f 'mc_main_asm.c' || echo
> './'`mc_main_asm.c
> /tmp/cclkrIER.s: Assembler messages:
> /tmp/cclkrIER.s:25: Error: selected processor does not support `movw
> r3,#:lower16:primary_map' in ARM mode
> /tmp/cclkrIER.s:28: Error: selected processor does not support `movt
> r3,#:upper16:primary_map' in ARM mode
> /tmp/cclkrIER.s:31: Error: selected processor does not support `movw
> r3,#0x' in ARM mode
> /tmp/cclkrIER.s:40: Error: selected processor does not support `movw
> r3,#0x' in ARM mode
> /tmp/cclkrIER.s:61: Error: selected processor does not support `movw
> r3,#:lower16:primary_map' in ARM mode
> /tmp/cclkrIER.s:64: Error: selected 

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2024-05-14 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=454346

--- Comment #9 from Paul Floyd  ---
On my RPi 5 with Raspberry Pi OS
Linux raspberrypi 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1
(2024-01-25) aarch64 GNU/Linux

Build fails with

m_dispatch/dispatch-arm-linux.S:102: Error: selected processor does not support
`movw r1,#47' in ARM mode
m_dispatch/dispatch-arm-linux.S:103: Error: selected processor does not support
`movw r2,#0' in ARM mode
m_dispatch/dispatch-arm-linux.S:155: Error: selected processor does not support
`movw r4,#:lower16:vgPlain_stats__n_xIndirs_32' in ARM mode
m_dispatch/dispatch-arm-linux.S:156: Error: selected processor does not support
`movt r4,#:upper16:vgPlain_stats__n_xIndirs_32' in ARM mode
m_dispatch/dispatch-arm-linux.S:173: Error: selected processor does not support
`ubfx r6,r6,#0,#13' in ARM mode
m_dispatch/dispatch-arm-linux.S:176: Error: selected processor does not support
`movw r4,#:lower16:vgPlain_tt_fast' in ARM mode
m_dispatch/dispatch-arm-linux.S:177: Error: selected processor does not support
`movt r4,#:upper16:vgPlain_tt_fast' in ARM mode
m_dispatch/dispatch-arm-linux.S:204: Error: selected processor does not support
`movw r4,#:lower16:vgPlain_stats__n_xIndir_hits1_32' in ARM mode
m_dispatch/dispatch-arm-linux.S:205: Error: selected processor does not support
`movt r4,#:upper16:vgPlain_stats__n_xIndir_hits1_32' in ARM mode
m_dispatch/dispatch-arm-linux.S:226: Error: selected processor does not support
`movw r4,#:lower16:vgPlain_stats__n_xIndir_hits2_32' in ARM mode
m_dispatch/dispatch-arm-linux.S:227: Error: selected processor does not support
`movt r4,#:upper16:vgPlain_stats__n_xIndir_hits2_32' in ARM mode
m_dispatch/dispatch-arm-linux.S:248: Error: selected processor does not support
`movw r4,#:lower16:vgPlain_stats__n_xIndir_hits3_32' in ARM mode
m_dispatch/dispatch-arm-linux.S:249: Error: selected processor does not support
`movt r4,#:upper16:vgPlain_stats__n_xIndir_hits3_32' in ARM mode
m_dispatch/dispatch-arm-linux.S:258: Error: selected processor does not support
`movw r4,#:lower16:vgPlain_stats__n_xIndir_misses_32' in ARM mode
m_dispatch/dispatch-arm-linux.S:259: Error: selected processor does not support
`movt r4,#:upper16:vgPlain_stats__n_xIndir_misses_32' in ARM mode

and also

gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../include -I../VEX/pub
-I../VEX/pub -DVGA_arm=1 -DVGO_linux=1 -DVGP_arm_linux=1
-DVGPV_arm_linux_vanilla=1-O2 -g -Wall -Wmissing-prototypes -Wshadow
-Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-qual
-Wwrite-strings -Wempty-body -Wformat -Wformat-signedness -Wformat-security
-Wignored-qualifiers -Wmissing-parameter-type -Wlogical-op -Wenum-conversion
-Wimplicit-fallthrough=2 -Wold-style-declaration -finline-functions
-fno-stack-protector -fno-strict-aliasing -fno-builtin   -marm -O2  -MT
memcheck_arm_linux-mc_main.o -MD -MP -MF .deps/memcheck_arm_linux-mc_main.Tpo
-c -o memcheck_arm_linux-mc_main.o `test -f 'mc_main.c' || echo './'`mc_main.c
/tmp/ccY1NRlM.s: Assembler messages:
/tmp/ccY1NRlM.s:27: Error: selected processor does not support `movw
r3,#:lower16:primary_map' in ARM mode
/tmp/ccY1NRlM.s:29: Error: selected processor does not support `movt
r3,#:upper16:primary_map' in ARM mode
/tmp/ccY1NRlM.s:68: Error: selected processor does not support `movw
r3,#:lower16:primary_map' in ARM mode
/tmp/ccY1NRlM.s:70: Error: selected processor does not support `movt
r3,#:upper16:primary_map' in ARM mode

gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../include -I../VEX/pub
-I../VEX/pub -DVGA_arm=1 -DVGO_linux=1 -DVGP_arm_linux=1
-DVGPV_arm_linux_vanilla=1-O2 -g -Wall -Wmissing-prototypes -Wshadow
-Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-qual
-Wwrite-strings -Wempty-body -Wformat -Wformat-signedness -Wformat-security
-Wignored-qualifiers -Wmissing-parameter-type -Wlogical-op -Wenum-conversion
-Wimplicit-fallthrough=2 -Wold-style-declaration -finline-functions
-fno-stack-protector -fno-strict-aliasing -fno-builtin   -marm -O2  -MT
memcheck_arm_linux-mc_main_asm.o -MD -MP -MF
.deps/memcheck_arm_linux-mc_main_asm.Tpo -c -o memcheck_arm_linux-mc_main_asm.o
`test -f 'mc_main_asm.c' || echo './'`mc_main_asm.c
/tmp/cclkrIER.s: Assembler messages:
/tmp/cclkrIER.s:25: Error: selected processor does not support `movw
r3,#:lower16:primary_map' in ARM mode
/tmp/cclkrIER.s:28: Error: selected processor does not support `movt
r3,#:upper16:primary_map' in ARM mode
/tmp/cclkrIER.s:31: Error: selected processor does not support `movw
r3,#0x' in ARM mode
/tmp/cclkrIER.s:40: Error: selected processor does not support `movw
r3,#0x' in ARM mode
/tmp/cclkrIER.s:61: Error: selected processor does not support `movw
r3,#:lower16:primary_map' in ARM mode
/tmp/cclkrIER.s:64: Error: selected processor does not support `movt
r3,#:upper16:primary_map' in ARM mode

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2024-05-13 Thread Khem Raj
https://bugs.kde.org/show_bug.cgi?id=454346

--- Comment #8 from Khem Raj  ---
(In reply to Paul Floyd from comment #4)
> (And I have made some changes recently - have the patches been rebased?)

@paul, I have rebased on master and uploaded latest 2 patches, dropping -mcpu
makes it working on wider arm systems ( it seems to work on
different versions of rpi boards ).

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2024-05-13 Thread Khem Raj
https://bugs.kde.org/show_bug.cgi?id=454346

Khem Raj  changed:

   What|Removed |Added

 Attachment #149172|0   |1
is obsolete||
 Attachment #149173|0   |1
is obsolete||
 Attachment #149174|0   |1
is obsolete||

--- Comment #7 from Khem Raj  ---
Created attachment 169452
  --> https://bugs.kde.org/attachment.cgi?id=169452=edit
potential fix 2

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2024-05-13 Thread Khem Raj
https://bugs.kde.org/show_bug.cgi?id=454346

--- Comment #6 from Khem Raj  ---
Created attachment 169451
  --> https://bugs.kde.org/attachment.cgi?id=169451=edit
proposed fix.

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2024-02-08 Thread Alexander Kanavin
https://bugs.kde.org/show_bug.cgi?id=454346

Alexander Kanavin  changed:

   What|Removed |Added

 CC||raj.k...@gmail.com

--- Comment #5 from Alexander Kanavin  ---
The patches weren't written by me, so it's difficult to answer about their
specifics. I only wanted to check if the fixes are obvious and suitable, and
it's fine if they're not. 

We run the tests in qemu arm64 virtual machine. I added Khem at least if he
would like to comment (he knows more about the area).

We're now in the process of updating to latest valgrind release, so when that's
done, I can review again what if anything needs to be rebased to valgrind trunk
and re-submitted, with more detailed explanations/logs of the errors we get if
the respective patch is not applied.

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2024-02-08 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=454346

--- Comment #4 from Paul Floyd  ---
(And I have made some changes recently - have the patches been rebased?)

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2024-02-08 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=454346

--- Comment #3 from Paul Floyd  ---
Are the yocto patches specific to any hardware?

I think that part of the problem is that the current options are too specific.
I'm afraid that these patches will just make it specific for something else.

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2024-02-06 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=454346

Paul Floyd  changed:

   What|Removed |Added

 CC||pjfl...@wanadoo.fr
   Assignee|jsew...@acm.org |pjfl...@wanadoo.fr

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2023-11-13 Thread Sam James
https://bugs.kde.org/show_bug.cgi?id=454346

Sam James  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=456200
 CC||s...@gentoo.org

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2023-11-08 Thread Randy MacLeod
https://bugs.kde.org/show_bug.cgi?id=454346

Randy MacLeod  changed:

   What|Removed |Added

 CC||rwmacl...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2022-05-24 Thread Alexander Kanavin
https://bugs.kde.org/show_bug.cgi?id=454346

--- Comment #2 from Alexander Kanavin  ---
Created attachment 149174
  --> https://bugs.kde.org/attachment.cgi?id=149174=edit
makefiles: Drop setting -mcpu to cortex-a8 on arm  architecture

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 454346] [PATCH] ARM fixes from the Yocto project

2022-05-24 Thread Alexander Kanavin
https://bugs.kde.org/show_bug.cgi?id=454346

--- Comment #1 from Alexander Kanavin  ---
Created attachment 149173
  --> https://bugs.kde.org/attachment.cgi?id=149173=edit
avoid neon for targets which don't support it

-- 
You are receiving this mail because:
You are watching all bug changes.