Jonathan Neuschäfer has uploaded this change for review. ( https://review.coreboot.org/23733
Change subject: arch/riscv: Make RVC support configurable
......................................................................
arch/riscv: Make RVC support configurable
In order to support RISC-V processors with and without the RVC
extension, configure the architecture variant (-march=...) explicitly.
NOTE: Spike does support RVC, but currently doesn't select
ARCH_RISCV_COMPRESSED, because coreboot's trap handler doesn't
support RVC.
Change-Id: Id4f69fa6b33604a5aa60fd6f6da8bd966494112f
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
---
M src/arch/riscv/Kconfig
M src/arch/riscv/Makefile.inc
2 files changed, 20 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/23733/1
diff --git a/src/arch/riscv/Kconfig b/src/arch/riscv/Kconfig
index a30cb70..2513c50 100644
--- a/src/arch/riscv/Kconfig
+++ b/src/arch/riscv/Kconfig
@@ -2,6 +2,13 @@
bool
default n
+config ARCH_RISCV_COMPRESSED
+ bool
+ default n
+ help
+ Enable this option if your RISC-V processor supports compressed
+ instructions (RVC). Currently, this enables RVC for all stages.
+
config ARCH_BOOTBLOCK_RISCV
bool
default n
diff --git a/src/arch/riscv/Makefile.inc b/src/arch/riscv/Makefile.inc
index d2b6cce..4b2ff03 100644
--- a/src/arch/riscv/Makefile.inc
+++ b/src/arch/riscv/Makefile.inc
@@ -15,14 +15,24 @@
##
################################################################################
-riscv_flags = -I$(src)/arch/riscv/ -mcmodel=medany
-
-riscv_asm_flags =
+################################################################################
+## RISC-V specific options
+################################################################################
ifeq ($(CONFIG_ARCH_RAMSTAGE_RISCV),y)
check-ramstage-overlap-regions += stack
endif
+riscv_arch = rv64imafd
+
+ifeq ($(CONFIG_ARCH_RISCV_COMPRESSED),y)
+ riscv_arch := $(riscv_arch)c
+endif
+
+riscv_flags = -I$(src)/arch/riscv/ -mcmodel=medany -march=$(riscv_arch)
+
+riscv_asm_flags = -march=$(riscv_arch)
+
################################################################################
## bootblock
################################################################################
--
To view, visit https://review.coreboot.org/23733
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id4f69fa6b33604a5aa60fd6f6da8bd966494112f
Gerrit-Change-Number: 23733
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Jonathan Neuschäfer has posted comments on this change. ( https://review.coreboot.org/23676 )
Change subject: util/abuild: Allow use of payloads when not providing a configfile
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://review.coreboot.org/23676
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I4368d9609bceb4cf7edb76c10bc0af0cdeb76958
Gerrit-Change-Number: 23676
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Tue, 13 Feb 2018 12:13:34 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes
Hello Peter Lin, Chris Wang, build bot (Jenkins), Furquan Shaikh,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/23731
to look at the new patch set (#2).
Change subject: mb/google/poppy/variant/nautilus: Enable and configure DPTF
......................................................................
mb/google/poppy/variant/nautilus: Enable and configure DPTF
This change enables DPTF and configures the policy.
DPTF parameters have been provided by internal power team.
BUG=b:67877437
BRANCH=master
TEST=emerge-nautilus coreboot
Change-Id: I31b31d5282ab38278bc68045ce75fdc6192f1144
Signed-off-by: Seunghwan Kim <sh_.kim(a)samsung.com>
---
M src/mainboard/google/poppy/variants/nautilus/devicetree.cb
M src/mainboard/google/poppy/variants/nautilus/include/variant/acpi/dptf.asl
2 files changed, 69 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/23731/2
--
To view, visit https://review.coreboot.org/23731
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I31b31d5282ab38278bc68045ce75fdc6192f1144
Gerrit-Change-Number: 23731
Gerrit-PatchSet: 2
Gerrit-Owner: shkim <sh_.kim(a)samsung.com>
Gerrit-Reviewer: Chris Wang <chriswang(a)ami.corp-partner.google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Peter Lin <peterlin(a)ami.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Marc Jones has posted comments on this change. ( https://review.coreboot.org/23723 )
Change subject: amd/stoneyridge: Use generic fixed MTRR setup
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/23723
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id5526dcff12555efccab811fa3442ba1bff051bb
Gerrit-Change-Number: 23723
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Tue, 13 Feb 2018 03:32:35 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes
Marc Jones has posted comments on this change. ( https://review.coreboot.org/23722 )
Change subject: x86/mtrr: Enable Rd/WrDram mod in AMD fixed MTRRs
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/23722
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie195131ff752400eb886dfccc39b314b4fa6b3f3
Gerrit-Change-Number: 23722
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Tue, 13 Feb 2018 03:32:10 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes