This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/sim arm/ChangeLog arm/armemu.c testsuite/s ...
- From: vapier at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Wed, 15 May 2013 17:49:44 +0000
- Subject: src/sim arm/ChangeLog arm/armemu.c testsuite/s ...
CVSROOT: /cvs/src
Module name: src
Changes by: vapier@sourceware.org 2013-05-15 17:49:44
Modified files:
sim/arm : ChangeLog armemu.c
sim/testsuite/sim/arm: ChangeLog
Added files:
sim/testsuite/sim/arm: movw-movt.ms
Log message:
sim: arm: add support for MOVW and MOVT instructions
From: Jayant R. Sonar <Jayant.Sonar@kpitcummins.com>
This patch adds simulator support for handling the armv7 instructions
'movw (immediate)' and 'movt'.
Compiler frequently use these instructions to load the 32bit addresses of
global variables, string pointers etc. into the general registers.
In absence of support of these instructions:
1. GDB run simulator fails to print even simple "hello world" string
on console.
2. Loading of global variable addresses into the registers fail causing
arithmetic operation failures.
Patch has been regression tested for arm-none-eabi (-march=armv7-a).
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/arm/ChangeLog.diff?cvsroot=src&r1=1.120&r2=1.121
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/arm/armemu.c.diff?cvsroot=src&r1=1.37&r2=1.38
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/testsuite/sim/arm/movw-movt.ms.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/testsuite/sim/arm/ChangeLog.diff?cvsroot=src&r1=1.1&r2=1.2