cpu: Introduce vaddr type
vaddr is to target_ulong what uintmax_t is to unsigned int.
Its purpose is to allow turning per-target functions with target_ulongarguments into CPUClass hooks.
Suggested-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Andreas Färber <afaerber@suse.de>
HACKING: Document vaddr type usage
Also extend documentation of target_ulong and abi_ulong.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Andreas Färber <afaerber@suse.de>
cpu: Introduce CPUClass::set_pc() for gdb_set_cpu_pc()
This moves setting the Program Counter from gdbstub into target code.Use vaddr type as upper-bound replacement for target_ulong.
Signed-off-by: Andreas Färber <afaerber@suse.de>
gdbstub: Change GDBState::query_cpu to CPUState
Since first_cpu/next_cpu are CPUState, CPUArchState is no longer needed.
This resolves a NULL pointer dereference of query_cpu, introducedwith commit 182735efaf956ccab50b6d74a4fed163e0f35660 and reported by...
tests: Add test-bitops.c with some sextract tests
Add some simple test cases for the new sextract32and sextract64 functions.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Richard Henderson <rth@twiddle.net>Message-id: 1372419632-5521-3-git-send-email-peter.maydell@linaro.org...
bitops: Provide sextract32() and sextract64()
A common operation in instruction decoding is to take a fieldfrom an instruction that represents a signed integer in somearbitrary number of bits, and sign extend it into a C signedinteger type for manipulation. Provide new functions sextract32()...
memory: Fix zero-sized memory region print
if mr->size == 0, then
int128_get64(int128_sub(mr->size, int128_make64(1))) => assert(!a.hi)
Also, use int128_one().
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>...
configure: Remove ldscripts
Since 964c6fa16f50a607f9da5068d6bf15ccc93872c0, these files are unused.
Signed-off-by: Richard Henderson <rth@twiddle.net>Message-id: 1374449966-12926-1-git-send-email-rth@twiddle.netSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
gtk: Fix accelerator filtering
This is in fact very simply: When the input in grabbed, everythingshould be exclusively passed to the guest - except it has our magicCTRL-ALT modifier set. Then let GTK filter out those accels that are inuse. When checking the modifier state, we just need to filter out NUM...
Merge remote-tracking branch 'pmaydell/tags/pull-arm-devs-20130722' into staging
arm-devs queue
View all revisions | View revisions
Also available in: Atom