Edgar E. Iglesias
14c521d45e
target-arm: A64: Trap ERET from EL0 at translation time
...
Suggested-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-19-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:54 +01:00
Edgar E. Iglesias
7ab6c10d00
target-arm: A64: Forbid ERET to higher or unimplemented ELs
...
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-18-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:53 +01:00
Edgar E. Iglesias
81547d6630
target-arm: Register EL3 versions of ELR and SPSR
...
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-17-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:53 +01:00
Edgar E. Iglesias
3b685ba7bf
target-arm: Register EL2 versions of ELR and SPSR
...
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-16-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:53 +01:00
Edgar E. Iglesias
1fe8141ed4
target-arm: Add a feature flag for EL3
...
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-15-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:53 +01:00
Edgar E. Iglesias
cca7c2f523
target-arm: Add a feature flag for EL2
...
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-14-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:52 +01:00
Edgar E. Iglesias
2a923c4dde
target-arm: A64: Introduce aarch64_banked_spsr_index()
...
Add aarch64_banked_spsr_index(), used to map an Exception Level
to an index in the banked_spsr array.
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-13-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:52 +01:00
Edgar E. Iglesias
28c9457df0
target-arm: Add SPSR entries for EL2/HYP and EL3/MON
...
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-12-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:52 +01:00
Edgar E. Iglesias
1b1742386c
target-arm: A64: Add ELR entries for EL2 and 3
...
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-11-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:52 +01:00
Edgar E. Iglesias
73fb3b764b
target-arm: A64: Add SP entries for EL2 and 3
...
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-10-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:52 +01:00
Edgar E. Iglesias
68fdb6c5b0
target-arm: c12_vbar -> vbar_el[]
...
No functional change.
Preparation for adding EL2 and 3 versions of this reg.
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-9-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:51 +01:00
Edgar E. Iglesias
d81c519c40
target-arm: Make esr_el1 an array
...
No functional change.
Prepares for future addtion of EL2 and 3 versions of this reg.
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-8-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:51 +01:00
Edgar E. Iglesias
6947f05978
target-arm: Make elr_el1 an array
...
No functional change.
Prepares for future additions of the EL2 and 3 versions of this reg.
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-7-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:51 +01:00
Edgar E. Iglesias
f79fbf39e2
target-arm: Use a 1:1 mapping between EL and MMU index
...
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com >
Message-id: 1400980132-25949-6-git-send-email-edgar.iglesias@gmail.com
Message-id: 1400805738-11889-7-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:51 +01:00
Edgar E. Iglesias
6ce2faf43c
target-arm: A32: Use get_mem_index for load/stores
...
Avoid using IS_USER directly as the MMU-idx to simplify future
changes to the MMU layout.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1400980132-25949-5-git-send-email-edgar.iglesias@gmail.com
Message-id: 1400805738-11889-6-git-send-email-edgar.iglesias@gmail.com
[PMM: parts relating to LDRT/STRT moved into earlier patches]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:50 +01:00
Peter Maydell
c119779543
target-arm/translate.c: Use get_mem_index() for SRS memory accesses
...
The SRS instruction was using a hardcoded 0 for the memory
accesses. This happens to be OK since the SRS instruction is
UNPREDICTABLE in User and System modes, but is awkward if we
want to rearrange the MMU index uses. Switch to using
get_mem_index() like all the other accesses.
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1400980132-25949-4-git-send-email-edgar.iglesias@gmail.com
2014-05-27 17:09:50 +01:00
Peter Maydell
a99caa48d8
target-arm/translate.c: Clean up mmu index handling for ldrt/strt
...
Clean up the mmu index handling for ldrt/strt insns: instead
of a flag 'user' indicating whether to treat the store as user
mode or not, use 'memidx' to indicate the correct memory index to use.
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1400980132-25949-3-git-send-email-edgar.iglesias@gmail.com
2014-05-27 17:09:50 +01:00
Edgar E. Iglesias
9d4c4e872e
target-arm: Move get_mem_index to translate.h
...
So that it can be shared with the AArch32 code.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com >
Message-id: 1400980132-25949-2-git-send-email-edgar.iglesias@gmail.com
Message-id: 1400805738-11889-5-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:50 +01:00
Fabian Aggeler
f0aff25570
target-arm: implement CPACR register logic for ARMv7
...
In ARMv7 the CPACR register allows to control access rights to
coprocessor 0-13 interfaces. Bits corresponding to unimplemented
coprocessors should be RAZ/WI. Bits ASEDIS, D32DIS, TRCDIS are
UNK/SBZP if VFP is not implemented and RAO/WI in some cases.
Treating TRCDIS as RAZ/WI since we neither implement a trace
macrocell nor a CP14 interface to the trace macrocell registers.
Since CPACR bits for VFP/Neon access are honoured with the CPACR_FPEN
bit in the TB flags, flushing the TLB is not necessary anymore.
Signed-off-by: Fabian Aggeler <aggelerf@ethz.ch >
Message-id: 1400532968-30668-1-git-send-email-aggelerf@ethz.ch
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:49 +01:00
Peter Maydell
fc37b7a0b0
hw/display/pxa2xx_lcd: Fix 16bpp+alpha and 18bpp+alpha palette formats
...
The pxa2xx palette entry "16bpp plus transparency" format is
xxxxxxxTRRRRR000GGGGGG00BBBBB000, and "18bpp plus transparency" is
xxxxxxxTRRRRRR00GGGGGG00BBBBBB00.
Correct errors in the code for reading these and converting
them to the internal format. In particular, the buggy code
was attempting to mask out bit 24 of a uint16_t, which
Coverity spotted as an error.
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1400233901-31785-1-git-send-email-peter.maydell@linaro.org
2014-05-27 17:09:49 +01:00
Rob Herring
9ef137cad6
MAINTAINERS: update Calxeda Highbank maintainer and status
...
Signed-off-by: Rob Herring <rob.herring@linaro.org >
Message-id: 1400116198-3155-1-git-send-email-robherring2@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 17:09:49 +01:00
Peter Maydell
93f94f9018
Merge remote-tracking branch 'remotes/rth/fix-tci' into staging
...
* remotes/rth/fix-tci:
tci: Fix tcg_out_call
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 14:44:04 +01:00
Christoffer Dall
00d0f7cb66
target-arm: Fix segfault on startup when KVM enabled
...
Commit 50a2c6e55f introduced a bug where QEMU would segfault on startup
when using KVM on ARM hosts, because kvm_arm_reset_cpu() accesses
cpu->cpreg_reset_values, which is not allocated before
kvm_arch_init_vcpu(). Fix this by not calling cpu_reset() until after
qemu_init_vcpu().
Acked-by: Paolo Bonzini <pbonzini@redhat.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Andreas Faerber <afaerber@suse.de >
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org >
Message-id: 1401194263-13010-1-git-send-email-christoffer.dall@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-27 13:55:39 +01:00
Max Filippov
57a740514d
target-xtensa: add tests for cross-page TB
...
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com >
2014-05-26 12:33:54 +04:00
Max Filippov
ca3164df4d
target-xtensa: completely clean TLB between MMU tests
...
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com >
2014-05-26 12:33:54 +04:00
Max Filippov
433d33c555
target-xtensa: fix cross-page jumps/calls at the end of TB
...
Use tb->pc instead of dc->pc to check for cross-page jumps.
When TB translation stops at the page boundary dc->pc points to the next
page allowing chaining to TBs in it, which is wrong.
Cc: qemu-stable@nongnu.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com >
2014-05-26 12:33:54 +04:00
Gerd Hoffmann
8977bd111f
docs: add multiseat.txt
...
Howto on setting up multiseat for guests.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:42:43 +02:00
Gerd Hoffmann
f85d28316a
usb: add input routing support for tablet and keyboard
...
Add display property to the keyboard.
Add display and head properties to the tablet.
If properties are set bind device to the display specified to
setup input routing.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:42:43 +02:00
Gerd Hoffmann
ee8c0b622c
sdl: pass key event source to input layer
...
So the input layer knows where the input is coming from
and input routing works correctly.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:42:43 +02:00
Gerd Hoffmann
6f5943cf45
input: bind devices and input routing
...
Add function to bind input devices to display devices. Implementing
input routing on top of this: Events coming from the display device in
question are routed to the input device bound to it (if there is one).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:42:43 +02:00
Gerd Hoffmann
8b84286f4c
input: switch hid mouse and tablet to the new input layer api.
...
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:42:43 +02:00
Gerd Hoffmann
1ff5eedd1d
input: switch hid keyboard to new input layer api.
...
Minimal patch to get the switchover done. We continue processing ps/2
scancodes for now as they are part of the live migration stream. Fixing
that, then mapping directly from QKeyValue to HID keycodes is left as
excercise for another day.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:42:43 +02:00
Gerd Hoffmann
86846bfe64
input: keymap: add meta keys
...
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:42:43 +02:00
Gerd Hoffmann
2386a90730
input: add name to input_event_key_number
...
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:42:42 +02:00
Gerd Hoffmann
11c7fa7fa6
input: add qemu_input_key_number_to_qcode
...
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:42:42 +02:00
Andrew Oates
f5c0ab1312
input (curses): mask keycodes to remove modifier bits
...
Without the mask, control bits are passed on in the keycode, generating
incorrect PS/2 sequences when SHIFT, ALT, etc are held down.
Cc: qemu-stable@nongnu.org
Signed-off-by: Andrew Oates <andrew@aoates.org >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:42:42 +02:00
Michael Tokarev
1687a089f1
libcacard: remove useless initializers
...
libcacard has many functions which initializes local variables
at declaration time, which are always assigned some values later
(often right after declaration). Clean up these initializers.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2014-05-26 10:41:22 +04:00
Peter Crosthwaite
116d554601
net: cadence_gem: Fix top comment
...
To indicate Cadence GEM not Xilinx.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2014-05-26 10:41:22 +04:00
Le Tan
1fba509527
bsd-user: replace fprintf(stderr, ...) with error_report()
...
Replace fprintf(stderr,...) with error_report() in files bsd-user/*.
The trailing "\n"s of the @fmt argument have been removed
because @fmt of error_report() should not contain newline.
Signed-off-by: Le Tan <tamlokveer@gmail.com >
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2014-05-26 10:41:22 +04:00
Le Tan
69e995040c
audio: replace fprintf(stderr, ...) with error_report() in audio
...
Replace fprintf(stderr,...) with error_report() in files audio/*.
The trailing "\n"s of the @fmt argument have been removed
because @fmt of error_report() should not contain newline.
Signed-off-by: Le Tan <tamlokveer@gmail.com >
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2014-05-26 10:41:21 +04:00
Hans de Goede
8d1bd3c901
usb-host-libusb: Set stream id when submitting bulk-stream transfers
...
Signed-off-by: Hans de Goede <hdegoede@redhat.com >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:41:07 +02:00
Hans de Goede
56a9f18051
usb-host-libusb: Add alloc / free streams ops
...
Signed-off-by: Hans de Goede <hdegoede@redhat.com >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:41:07 +02:00
Hans de Goede
b664b80f19
usb-host-libusb: Fill in endpoint max_streams when available
...
Signed-off-by: Hans de Goede <hdegoede@redhat.com >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:41:07 +02:00
Hans de Goede
19e8393170
usb-redir: Add support for bulk streams
...
Signed-off-by: Hans de Goede <hdegoede@redhat.com >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:41:07 +02:00
Gerd Hoffmann
22513a9b44
usb-mtp: handle usb_mtp_get_object failure
...
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:41:07 +02:00
Gerd Hoffmann
68206d7342
usb-mtp: handle lseek failure
...
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:41:07 +02:00
Gerd Hoffmann
36084d7e31
usb-mtp: use bool to track MTPObject init status
...
Stop setting nchildren to -1. Use separate bool variable to track
whenever we've already fetched the child objects instead.
Also make nchildren unsigned.
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com >
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:41:07 +02:00
Gerd Hoffmann
f995523582
xhci: add xhci_get_flag
...
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:41:07 +02:00
Gerd Hoffmann
058fdcf52c
xhci: add endpoint cap on express bus only
...
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
2014-05-26 08:41:07 +02:00
Gerd Hoffmann
463c534db5
xhci: child detach fix
...
xhci_child_detach() zaps the wrong slot when unplugging a device
connected via usb-hub: Instead of the device's slot the slot of the
usb-hub is used. Fix it.
https://bugzilla.redhat.com/show_bug.cgi?id=1075846
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Reviewed-by: Gonglei <arei.gonglei@huawei.com >
2014-05-26 08:41:07 +02:00