Skip to content

Commit c42f8a7

Browse files
Courtney3141Ivan-Velickovic
authored andcommitted
Ensure Mr phys gets set to true if paddr is specified
Signed-off-by: Courtney Darville <courtneydarville94@outlook.com>
1 parent e2f2161 commit c42f8a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/python/module.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,8 @@ def __init__(
607607
paddr: Optional[int] = None
608608
) -> None:
609609
c_name = c_char_p(name.encode("utf-8"))
610+
if paddr:
611+
physical = True
610612
if physical:
611613
self._obj = libsdfgen.sdfgen_mr_create_physical(sdf._obj, c_name, size, ffi_uint64_ptr(paddr))
612614
else:

0 commit comments

Comments
 (0)