qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 30c2af: target/xtensa: fix mapping direction


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 30c2af: target/xtensa: fix mapping direction in read/write...
Date: Tue, 06 Jun 2017 10:34:33 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 30c2afd151cbc38c012f7b441088980807183da6
      
https://github.com/qemu/qemu/commit/30c2afd151cbc38c012f7b441088980807183da6
  Author: Max Filippov <address@hidden>
  Date:   2017-06-06 (Tue, 06 Jun 2017)

  Changed paths:
    M target/xtensa/xtensa-semi.c

  Log Message:
  -----------
  target/xtensa: fix mapping direction in read/write simcalls

Read and write simcalls map physical memory to access I/O buffers, but
'read' simcall need to map it for writing and 'write' simcall need to
map it for reading, i.e. the opposite of what they do now. Fix that.

Cc: address@hidden
Signed-off-by: Max Filippov <address@hidden>


  Commit: 347ec03093f9668a379ef6b7fa1feb332fff039c
      
https://github.com/qemu/qemu/commit/347ec03093f9668a379ef6b7fa1feb332fff039c
  Author: Max Filippov <address@hidden>
  Date:   2017-06-06 (Tue, 06 Jun 2017)

  Changed paths:
    M target/xtensa/xtensa-semi.c

  Log Message:
  -----------
  target/xtensa: fix return value of read/write simcalls

Return value of read/write simcalls is not calculated correctly in case
of operations crossing page boundary and in case of short reads/writes.
Read and write simcalls should return the size of data actually
read/written or -1 in case of error.

Cc: address@hidden
Signed-off-by: Max Filippov <address@hidden>


  Commit: 8128b3e0798e6c7e5742fa9f85bf8a4bf90af94a
      
https://github.com/qemu/qemu/commit/8128b3e0798e6c7e5742fa9f85bf8a4bf90af94a
  Author: Max Filippov <address@hidden>
  Date:   2017-06-06 (Tue, 06 Jun 2017)

  Changed paths:
    M hw/xtensa/sim.c
    M target/xtensa/cpu.h
    M target/xtensa/xtensa-semi.c

  Log Message:
  -----------
  target/xtensa: support output to chardev console

In semihosting mode QEMU allows guest to read and write host file
descriptors directly, including descriptors 0..2, a.k.a. stdin, stdout
and stderr. Sometimes it's desirable to have semihosting console
controlled by -serial option, e.g. to connect it to network.

Add semihosting console to xtensa-semi.c, open it in the 'sim' machine
in the presence of -serial option and direct stdout and stderr to it
when it's present.

Signed-off-by: Max Filippov <address@hidden>


  Commit: dd7b952b793e341c905355581a21cdbaa8b13c31
      
https://github.com/qemu/qemu/commit/dd7b952b793e341c905355581a21cdbaa8b13c31
  Author: Max Filippov <address@hidden>
  Date:   2017-06-06 (Tue, 06 Jun 2017)

  Changed paths:
    M target/xtensa/gdbstub.c

  Log Message:
  -----------
  target/xtensa: handle unknown registers in gdbstub

Xtensa cores may have registers of types/sizes not supported by the
gdbstub accessors. Ignore writes to such registers and return zero on
read, but always return correct register size, so that gdb on the other
side is able to access all registers in the packet holding unsupported
registers in the middle. This fixes gdb interaction with cores that have
vector/custom TIE registers.

Cc: address@hidden
Signed-off-by: Max Filippov <address@hidden>


  Commit: 65dfad62a176f5265f801683be64149c5ad55f7d
      
https://github.com/qemu/qemu/commit/65dfad62a176f5265f801683be64149c5ad55f7d
  Author: Peter Maydell <address@hidden>
  Date:   2017-06-06 (Tue, 06 Jun 2017)

  Changed paths:
    M hw/xtensa/sim.c
    M target/xtensa/cpu.h
    M target/xtensa/gdbstub.c
    M target/xtensa/xtensa-semi.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/xtensa/tags/20170606-xtensa' into 
staging

target/xtensa fixes:

- fix read/write simcall mapping flags and return value;
- use -serial option to direct console output of sim machine to QEMU chardev;
- fix handling of unknown registers in the gdbstub.

# gpg: Signature made Tue 06 Jun 2017 11:46:05 BST
# gpg:                using RSA key 0x51F9CC91F83FA044
# gpg: Good signature from "Max Filippov <address@hidden>"
# gpg:                 aka "Max Filippov <address@hidden>"
# gpg:                 aka "Max Filippov <address@hidden>"
# Primary key fingerprint: 2B67 854B 98E5 327D CDEB  17D8 51F9 CC91 F83F A044

* remotes/xtensa/tags/20170606-xtensa:
  target/xtensa: handle unknown registers in gdbstub
  target/xtensa: support output to chardev console
  target/xtensa: fix return value of read/write simcalls
  target/xtensa: fix mapping direction in read/write simcalls

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/572db7cd69be...65dfad62a176

reply via email to

[Prev in Thread] Current Thread [Next in Thread]