<p>Xiang Wang has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/28357">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">riscv: fix to write XS<br><br>XS is a read-only field of mstatus. Unable to be write. So remove this code.<br><br>Change-Id: I3ad6b0029900124ac7cce062e668a0ea5a8b2c0e<br>Signed-off-by: Xiang Wang <wxjstz@126.com><br>---<br>M src/arch/riscv/virtual_memory.c<br>1 file changed, 0 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/57/28357/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/arch/riscv/virtual_memory.c b/src/arch/riscv/virtual_memory.c</span><br><span>index 71e2ac9..68936b6 100644</span><br><span>--- a/src/arch/riscv/virtual_memory.c</span><br><span>+++ b/src/arch/riscv/virtual_memory.c</span><br><span>@@ -39,7 +39,6 @@</span><br><span>     uintptr_t ms = 0;</span><br><span> </span><br><span>        ms = INSERT_FIELD(ms, MSTATUS_FS, 3);</span><br><span style="color: hsl(0, 100%, 40%);">-   ms = INSERT_FIELD(ms, MSTATUS_XS, 3);</span><br><span>        write_csr(mstatus, ms);</span><br><span> </span><br><span>  // clear any pending timer interrupts.</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/28357">change 28357</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/28357"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I3ad6b0029900124ac7cce062e668a0ea5a8b2c0e </div>
<div style="display:none"> Gerrit-Change-Number: 28357 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Xiang Wang <wxjstz@126.com> </div>