This is an automated email from Gerrit.

Svetoslav Enchev (svetoslav.enc...@gmail.com) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/4635

-- gerrit

commit 4409a30638093052adc4b3a1dcd8ae9832c6b2de
Author: Svetoslav Enchev <svetoslav.enc...@gmail.com>
Date:   Sun Aug 5 12:40:32 2018 +0300

    target/riscv/riscv-011: fix compile warning about uninitialized variable
    
    Change-Id: I6996dcb866fbace26817636f4bedba09510a087f
    Signed-off-by: Svetoslav Enchev <svetoslav.enc...@gmail.com>

diff --git a/src/target/riscv/riscv-011.c b/src/target/riscv/riscv-011.c
index 498da5a..4b38d2f 100644
--- a/src/target/riscv/riscv-011.c
+++ b/src/target/riscv/riscv-011.c
@@ -1787,6 +1787,8 @@ static riscv_error_t handle_halt_routine(struct target 
*target)
                                        reg = CSR_DCSR;
                                        break;
                                default:
+                                       LOG_ERROR("Got invalid register result 
%d", result);
+                                       goto error;
                                        assert(0);
                        }
                        if (riscv_xlen(target) == 32) {

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to