[Qemu-devel] [PATCH v6 0/2] Nios II generic board config and semihosting

Sandra Loosemore posted 2 patches 5 years, 1 month ago
Test asan passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Test checkpatch failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1553193630-28611-1-git-send-email-sandra@codesourcery.com
Maintainers: Chris Wulff <crwulff@gmail.com>, Marek Vasut <marex@denx.de>
There is a newer version of this series
default-configs/nios2-softmmu.mak |   1 +
hw/nios2/Kconfig                  |   4 +
hw/nios2/Makefile.objs            |   1 +
hw/nios2/boot.c                   |  17 +-
hw/nios2/generic_nommu.c          | 104 +++++++++
qemu-options.hx                   |   8 +-
target/nios2/Makefile.objs        |   2 +-
target/nios2/cpu.h                |   4 +-
target/nios2/helper.c             |  13 ++
target/nios2/nios2-semi.c         | 448 ++++++++++++++++++++++++++++++++++++++
10 files changed, 590 insertions(+), 12 deletions(-)
create mode 100644 hw/nios2/generic_nommu.c
create mode 100644 target/nios2/nios2-semi.c
[Qemu-devel] [PATCH v6 0/2] Nios II generic board config and semihosting
Posted by Sandra Loosemore 5 years, 1 month ago
This is the sixth version of the patch series last posted here:
http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg03167.html

Changes since v5 include:
- The code to allow booting from a low memory address has been simplified
  and better commented.
- Random devices not supported by the libgloss BSP have been removed from
  the new nios2-generic-nommu emulation.
- FIXMEs in the semihosting code have been fixed, along with other nits
  from review.

Also, the semihosting specification can now be found in libgloss.

Sandra Loosemore (2):
  Add generic Nios II board.
  Add Nios II semihosting support.

 default-configs/nios2-softmmu.mak |   1 +
 hw/nios2/Kconfig                  |   4 +
 hw/nios2/Makefile.objs            |   1 +
 hw/nios2/boot.c                   |  17 +-
 hw/nios2/generic_nommu.c          | 104 +++++++++
 qemu-options.hx                   |   8 +-
 target/nios2/Makefile.objs        |   2 +-
 target/nios2/cpu.h                |   4 +-
 target/nios2/helper.c             |  13 ++
 target/nios2/nios2-semi.c         | 448 ++++++++++++++++++++++++++++++++++++++
 10 files changed, 590 insertions(+), 12 deletions(-)
 create mode 100644 hw/nios2/generic_nommu.c
 create mode 100644 target/nios2/nios2-semi.c

-- 
2.8.1


Re: [Qemu-devel] [PATCH v6 0/2] Nios II generic board config and semihosting
Posted by no-reply@patchew.org 5 years, 1 month ago
Patchew URL: https://patchew.org/QEMU/1553193630-28611-1-git-send-email-sandra@codesourcery.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Subject: [Qemu-devel] [PATCH v6 0/2] Nios II generic board config and semihosting
Message-id: 1553193630-28611-1-git-send-email-sandra@codesourcery.com
Type: series

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

From https://github.com/patchew-project/qemu
 * [new tag]         patchew/1553193630-28611-1-git-send-email-sandra@codesourcery.com -> patchew/1553193630-28611-1-git-send-email-sandra@codesourcery.com
Switched to a new branch 'test'
25e8e96 Add Nios II semihosting support.
531d106 Add generic Nios II board.

=== OUTPUT BEGIN ===
1/2 Checking commit 531d10673f8d (Add generic Nios II board.)
WARNING: Block comments use a leading /* on a separate line
#76: FILE: hw/nios2/boot.c:152:
+            /* The Nios II processor reference guide documents that the

WARNING: Block comments use * on subsequent lines
#77: FILE: hw/nios2/boot.c:153:
+            /* The Nios II processor reference guide documents that the
+               kernel is placed at virtual memory address 0xc0000000,

WARNING: Block comments use a trailing */ on a separate line
#79: FILE: hw/nios2/boot.c:155:
+               and adjust the entry to get the address in physical RAM.  */

ERROR: else should follow close brace '}'
#87: FILE: hw/nios2/boot.c:163:
+        }
+        else {

WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#98: 
new file mode 100644

WARNING: Block comments use a leading /* on a separate line
#188: FILE: hw/nios2/generic_nommu.c:86:
+    /* The libgloss linker script doesn't include an exception vector,

WARNING: Block comments use * on subsequent lines
#189: FILE: hw/nios2/generic_nommu.c:87:
+    /* The libgloss linker script doesn't include an exception vector,
+       so use the reset address.  Boo.  */

WARNING: Block comments use a trailing */ on a separate line
#189: FILE: hw/nios2/generic_nommu.c:87:
+       so use the reset address.  Boo.  */

WARNING: Block comments use a leading /* on a separate line
#192: FILE: hw/nios2/generic_nommu.c:90:
+    /* The linker script does have a TLB miss memory region declared,

WARNING: Block comments use * on subsequent lines
#193: FILE: hw/nios2/generic_nommu.c:91:
+    /* The linker script does have a TLB miss memory region declared,
+       but this should never be used with no MMU.  */

WARNING: Block comments use a trailing */ on a separate line
#193: FILE: hw/nios2/generic_nommu.c:91:
+       but this should never be used with no MMU.  */

total: 1 errors, 10 warnings, 154 lines checked

Patch 1/2 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

2/2 Checking commit 25e8e964d9bf (Add Nios II semihosting support.)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#111: 
new file mode 100644

WARNING: Block comments use a leading /* on a separate line
#263: FILE: target/nios2/nios2-semi.c:148:
+        /* The nios2 semihosting ABI does not provide any way to report this

WARNING: Block comments use a leading /* on a separate line
#293: FILE: target/nios2/nios2-semi.c:178:
+        /* FIXME: We've already lost the high bits of the lseek

WARNING: Block comments use * on subsequent lines
#294: FILE: target/nios2/nios2-semi.c:179:
+        /* FIXME: We've already lost the high bits of the lseek
+           return value.  */

WARNING: Block comments use a trailing */ on a separate line
#294: FILE: target/nios2/nios2-semi.c:179:
+           return value.  */

WARNING: Block comments use a leading /* on a separate line
#302: FILE: target/nios2/nios2-semi.c:187:
+/* Read the input value from the argument block; fail the semihosting

total: 0 errors, 6 warnings, 521 lines checked

Patch 2/2 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/1553193630-28611-1-git-send-email-sandra@codesourcery.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com