qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] e9deaa: target-mips: add 24KEc CPU definition


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] e9deaa: target-mips: add 24KEc CPU definition
Date: Fri, 23 Sep 2016 08:30:05 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: e9deaad8a58c899dc32e9fdeff9e533070e79dca
      
https://github.com/qemu/qemu/commit/e9deaad8a58c899dc32e9fdeff9e533070e79dca
  Author: André Draszik <address@hidden>
  Date:   2016-09-23 (Fri, 23 Sep 2016)

  Changed paths:
    M target-mips/translate_init.c

  Log Message:
  -----------
  target-mips: add 24KEc CPU definition

Define a new CPU definition supporting 24KEc cores, similar to
the existing 24Kc, but with added support for DSP instructions
and MIPS16e (and without FPU).

Signed-off-by: André Draszik <address@hidden>
Signed-off-by: Leon Alrae <address@hidden>


  Commit: d208ac0c2e4cb43b74153bd584fc63c7b8a93ed6
      
https://github.com/qemu/qemu/commit/d208ac0c2e4cb43b74153bd584fc63c7b8a93ed6
  Author: Leon Alrae <address@hidden>
  Date:   2016-09-23 (Fri, 23 Sep 2016)

  Changed paths:
    M target-mips/translate.c

  Log Message:
  -----------
  target-mips: generate fences

Make use of memory barrier TCG opcode in MIPS front end.

Signed-off-by: Leon Alrae <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: e1be160691e1d64591c48c16b9a6f3901cee6cbf
      
https://github.com/qemu/qemu/commit/e1be160691e1d64591c48c16b9a6f3901cee6cbf
  Author: Aleksandar Markovic <address@hidden>
  Date:   2016-09-23 (Fri, 23 Sep 2016)

  Changed paths:
    M linux-user/syscall_defs.h

  Log Message:
  -----------
  linux-user: Fix TARGET_SIOCATMARK definition for Mips

This patch fixes wrong definition of TARGET_SIOCATMARK for mips,
alpha, and sh4.

The current definition is:

  #define SIOCATMARK      0x8905

while the correct definition is:

  #define SIOCATMARK      TARGET_IOR('s', 7, int)

See Linux kernel source file arch/mips/include/uapi/asm/sockios.h#L19
for reference.

This patch also a fixes LTP test failure for test sockioctl01, for
mips, alpha, and sh4.

Signed-off-by: Aleksandar Rikalo <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Reviewed-by: Leon Alrae <address@hidden>
Acked-by: Riku Voipio <address@hidden>
Signed-off-by: Leon Alrae <address@hidden>


  Commit: 3a87a954c84d036b1f6ceb95abbdc80cdc5d5b68
      
https://github.com/qemu/qemu/commit/3a87a954c84d036b1f6ceb95abbdc80cdc5d5b68
  Author: Aleksandar Markovic <address@hidden>
  Date:   2016-09-23 (Fri, 23 Sep 2016)

  Changed paths:
    M linux-user/syscall_defs.h

  Log Message:
  -----------
  linux-user: Fix TARGET_F_GETOWN definition for Mips

For some reason, Qemu's TARGET_F_GETOWN constant for Mips does not
match the correct value of correspondent F_GETOWN. This patch fixes
this problem.

For reference, see Mips' F_GETOWN definition in Linux kernel at
arch/mips/include/uapi/asm/fcntl.h#L44.

This patch also fixes some fcntl()-related LTP tests for Qemu
user mode for Mips.

Signed-off-by: Miodrag Dinic <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Reviewed-by: Leon Alrae <address@hidden>
Acked-by: Riku Voipio <address@hidden>
Signed-off-by: Leon Alrae <address@hidden>


  Commit: 8a8001b14728baacaa3491f7f723b92a7376e421
      
https://github.com/qemu/qemu/commit/8a8001b14728baacaa3491f7f723b92a7376e421
  Author: Aleksandar Markovic <address@hidden>
  Date:   2016-09-23 (Fri, 23 Sep 2016)

  Changed paths:
    M linux-user/syscall_defs.h

  Log Message:
  -----------
  linux-user: Fix structure target_flock definition for Mips

Structure flock is defined for Mips in a way different from any
other platform. For reference, see Linux kernel source code files:

arch/mips/include/uapi/asm/fcntl.h, line 63 (for Mips)
include/uapi/asm-generic/fcntl.h, line 195 (for all other platforms)

This patch fix this problem, by amending structure target_flock,
for Mips only.

Besides, this patch fixes LTP tests fcntl11, fcntl17, fcntl19, fcntl20,
and fcntl21, which are currently failing, if executed in Qemu user mode
for Mips platforms.

Signed-off-by: Aleksandar Markovic <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Reviewed-by: Leon Alrae <address@hidden>
Acked-by: Riku Voipio <address@hidden>
Signed-off-by: Leon Alrae <address@hidden>


  Commit: 2ef4186964653671ef899016c05d44e7b71cf4a6
      
https://github.com/qemu/qemu/commit/2ef4186964653671ef899016c05d44e7b71cf4a6
  Author: Aleksandar Markovic <address@hidden>
  Date:   2016-09-23 (Fri, 23 Sep 2016)

  Changed paths:
    M linux-user/mips/target_structs.h

  Log Message:
  -----------
  linux-user: Fix structure target_semid64_ds definition for Mips

This patch corrects target_semid64_ds structure definition for Mips.

See, for example definition of semid64_ds for Mips in Linux kernel:
arch/mips/include/uapi/asm/sembuf.h#L13.

This patch will also fix certain semaphore-related LTP tests for Mips,
if they are executed in Qemu user mode for any Mips platform.

Signed-off-by: Miodrag Dinic <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Reviewed-by: Leon Alrae <address@hidden>
Acked-by: Riku Voipio <address@hidden>
Signed-off-by: Leon Alrae <address@hidden>


  Commit: d7779acb30489729431436e71afb1fd36ef1966d
      
https://github.com/qemu/qemu/commit/d7779acb30489729431436e71afb1fd36ef1966d
  Author: Aleksandar Markovic <address@hidden>
  Date:   2016-09-23 (Fri, 23 Sep 2016)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Fix certain argument alignment cases for Mips64

The function that is changed in this patch is supposed to indicate that
there was certain argument rearrangement related to 64-bit arguments on
32-bit platforms. The background on such rearrangements can be found,
for example, in the man page for syscall(2).

However, for 64-bit Mips architectures there is no such rearrangement,
and this patch reflects it.

Signed-off-by: Aleksandar Rikalo <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Reviewed-by: Leon Alrae <address@hidden>
Acked-by: Riku Voipio <address@hidden>
Signed-off-by: Leon Alrae <address@hidden>


  Commit: 0444a3b7935f6e09dfddf00411840e70f6fd933e
      
https://github.com/qemu/qemu/commit/0444a3b7935f6e09dfddf00411840e70f6fd933e
  Author: Aleksandar Markovic <address@hidden>
  Date:   2016-09-23 (Fri, 23 Sep 2016)

  Changed paths:
    M linux-user/mips/target_syscall.h
    M linux-user/mips64/target_syscall.h
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Add missing TARGET_EDQUOT error code for Mips

EDQUOT is defined for Mips platform in Linux kernel in such a way
that it has different value than on most other platforms. However,
correspondent TARGET_EDQUOT for Mips is missing in Qemu code. Moreover,
TARGET_EDQUOT is missing from the table for conversion of error codes
from host to target. This patch fixes these problems.

Without this patch, syscalls add_key(), keyctl(), link(), mkdir(), mknod(),
open(), rename(), request_key(), setxattr(), symlink(), and write() will not
be able to return the right error code in some scenarios on Mips platform.
(Some of these syscalls are not yet supported in Qemu, but once they are
supported, they will need correct EDQUOT handling.)

Signed-off-by: Aleksandar Markovic <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Acked-by: Riku Voipio <address@hidden>
Signed-off-by: Leon Alrae <address@hidden>


  Commit: fea55615b2f924128e115ceb2265069561b03ef8
      
https://github.com/qemu/qemu/commit/fea55615b2f924128e115ceb2265069561b03ef8
  Author: Aleksandar Markovic <address@hidden>
  Date:   2016-09-23 (Fri, 23 Sep 2016)

  Changed paths:
    M linux-user/strace.list

  Log Message:
  -----------
  linux-user: Add missing Mips syscalls items in strace.list

Without this patch, a number of Mips syscalls will be logged in the following
way (in this example, this is an invocation of accept4()):

  86906 Unknown syscall 4334

This patch provides standard Qemu's strace output for such cases, like this:

  95861 accept4(3,1996486000,1996486016,128,0,0) = 5

Such output may be further improved by providing strace-related functions
that handle only particular syscalls, but this is beyond the scope of
this patch.

Signed-off-by: Aleksandar Markovic <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Acked-by: Riku Voipio <address@hidden>
Signed-off-by: Leon Alrae <address@hidden>


  Commit: eaff9c4367ac3f7ac44f6c6f4cb7bcd4daa89af5
      
https://github.com/qemu/qemu/commit/eaff9c4367ac3f7ac44f6c6f4cb7bcd4daa89af5
  Author: Peter Maydell <address@hidden>
  Date:   2016-09-23 (Fri, 23 Sep 2016)

  Changed paths:
    M linux-user/mips/target_structs.h
    M linux-user/mips/target_syscall.h
    M linux-user/mips64/target_syscall.h
    M linux-user/strace.list
    M linux-user/syscall.c
    M linux-user/syscall_defs.h
    M target-mips/translate.c
    M target-mips/translate_init.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/lalrae/tags/mips-20160923' into staging

MIPS patches 2016-09-23

Changes:
* 24KEc CPU definition
* SYNC instructions make use of tcg memory barrier ops
* various MIPS linux-user bug fixes

# gpg: Signature made Fri 23 Sep 2016 08:09:08 BST
# gpg:                using RSA key 0x52118E3C0B29DA6B
# gpg: Good signature from "Leon Alrae <address@hidden>"
# Primary key fingerprint: 8DD3 2F98 5495 9D66 35D4  4FC0 5211 8E3C 0B29 DA6B

* remotes/lalrae/tags/mips-20160923:
  linux-user: Add missing Mips syscalls items in strace.list
  linux-user: Add missing TARGET_EDQUOT error code for Mips
  linux-user: Fix certain argument alignment cases for Mips64
  linux-user: Fix structure target_semid64_ds definition for Mips
  linux-user: Fix structure target_flock definition for Mips
  linux-user: Fix TARGET_F_GETOWN definition for Mips
  linux-user: Fix TARGET_SIOCATMARK definition for Mips
  target-mips: generate fences
  target-mips: add 24KEc CPU definition

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


Compare: https://github.com/qemu/qemu/compare/c229472af095...eaff9c4367ac

reply via email to

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