<p>Jonathan Neuschäfer has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21654">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">arch/riscv: trap handler: Print load/store access width in bits<br><br>This is easier to read than the raw shift amount that's extracted from<br>load/store instructions.<br><br>Change-Id: Ia16ab9fbaf55345b654ea65e65267ed900eb29e1<br>Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net><br>---<br>M src/arch/riscv/trap_handler.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/21654/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/arch/riscv/trap_handler.c b/src/arch/riscv/trap_handler.c<br>index ca4954f..4359ed9 100644<br>--- a/src/arch/riscv/trap_handler.c<br>+++ b/src/arch/riscv/trap_handler.c<br>@@ -245,7 +245,7 @@<br>         insn_t memWidth = (faultingInstruction & widthMask) >> 12;<br>  insn_t destMask = 0xF80;<br>      insn_t destRegister = (faultingInstruction & destMask) >> 7;<br>-       printk(BIOS_DEBUG, "Width: 0x%x\n", memWidth);<br>+     printk(BIOS_DEBUG, "Width:              %d bits\n", (1 << memWidth) * 8);<br>     if (memWidth == 3) {<br>          // load double, handle the issue<br>              void* badAddress = (void*) tf->badvaddr;<br>@@ -274,7 +274,7 @@<br>      insn_t memWidth = (faultingInstruction & widthMask) >> 12;<br>  insn_t srcMask = 0x1F00000;<br>   insn_t srcRegister = (faultingInstruction & srcMask) >> 20;<br>-        printk(BIOS_DEBUG, "Width: 0x%x\n", memWidth);<br>+     printk(BIOS_DEBUG, "Width:              %d bits\n", (1 << memWidth) * 8);<br>     if (memWidth == 3) {<br>          // store double, handle the issue<br>             void* badAddress = (void*) tf->badvaddr;<br></pre><p>To view, visit <a href="https://review.coreboot.org/21654">change 21654</a>. To unsubscribe, 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/21654"/><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: Ia16ab9fbaf55345b654ea65e65267ed900eb29e1 </div>
<div style="display:none"> Gerrit-Change-Number: 21654 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer@gmx.net> </div>