scottt / qemu-armv7a-cp15

Accessing ARMv7a CP15 registers in GDB and QEMU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project demonstrates accessing ARMv7 CP15 registers under GDB and QEMU. It's accomplished by calling helper functions with the necessary code sequence interactively in GDB.

To build the code

$ . armv7-linaro.env
$ make

To run the code under the QEMU emulator:

$ make qemu

In a separate terminal:

$ make gdb

Try calling the following functions interactively in GDB:

(gdb) p/x cr_get()
(gdb) p/x auxcr_get()
(gdb) p/x cpuid_get()

See cp15.h and cp15.c for more details.

About

Accessing ARMv7a CP15 registers in GDB and QEMU


Languages

Language:C 74.3%Language:Makefile 16.5%Language:Assembly 7.4%Language:GDB 1.8%