mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
Fix model restore crash, bug1013.
This commit is contained in:
parent
849c1e46a2
commit
e8b5001cfe
2
Changes
2
Changes
@ -33,6 +33,8 @@ indicates the contributor was also the author of the fix; Thanks!
|
|||||||
|
|
||||||
**** Fix $bitstoreal constant propagation, bug1012. [Jonathan Kimmitt]
|
**** Fix $bitstoreal constant propagation, bug1012. [Jonathan Kimmitt]
|
||||||
|
|
||||||
|
**** Fix model restore crash, bug1013. [Jason McMullan]
|
||||||
|
|
||||||
|
|
||||||
* Verilator 3.878 2015-11-01
|
* Verilator 3.878 2015-11-01
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ void VerilatedRestore::fill() {
|
|||||||
if (VL_UNLIKELY(!isOpen())) return;
|
if (VL_UNLIKELY(!isOpen())) return;
|
||||||
// Move remaining characters down to start of buffer. (No memcpy, overlaps allowed)
|
// Move remaining characters down to start of buffer. (No memcpy, overlaps allowed)
|
||||||
vluint8_t* rp = m_bufp;
|
vluint8_t* rp = m_bufp;
|
||||||
for (vluint8_t* sp=m_cp; rp < m_endp;) *rp++ = *sp++; // Overlaps
|
for (vluint8_t* sp=m_cp; sp < m_endp;) *rp++ = *sp++; // Overlaps
|
||||||
m_endp = m_bufp + (m_endp - m_cp);
|
m_endp = m_bufp + (m_endp - m_cp);
|
||||||
m_cp = m_bufp; // Reset buffer
|
m_cp = m_bufp; // Reset buffer
|
||||||
// Read into buffer starting at m_endp
|
// Read into buffer starting at m_endp
|
||||||
|
Loading…
Reference in New Issue
Block a user