Skip to content

lopper:lops:lop-microblaze-riscv: Add -mcmodel=medany compiler flag f…#780

Merged
zeddii merged 1 commit into
devicetree-org:masterfrom
sathishkumar-amd:mcmodel
Jun 30, 2026
Merged

lopper:lops:lop-microblaze-riscv: Add -mcmodel=medany compiler flag f…#780
zeddii merged 1 commit into
devicetree-org:masterfrom
sathishkumar-amd:mcmodel

Conversation

@sathishkumar-amd

Copy link
Copy Markdown
Contributor

…or MicroBlaze RISC-V

MicroBlaze RISC-V designs that map memory at or above 0x80000000 (2 GiB) require the -mcmodel=medany compiler flag. The default medlow code model cannot address such regions and leads to build/runtime issues.

@sathishkumar-amd

Copy link
Copy Markdown
Contributor Author

Hi @onkarharsh,
Please review this

@onkarharsh

Copy link
Copy Markdown
Contributor

Please use propval() instead of try/except block

…or MicroBlaze RISC-V

MicroBlaze RISC-V designs that map memory at or above 0x80000000 (2 GiB)
require the -mcmodel=medany compiler flag. The default medlow code model
cannot address such regions and leads to build/runtime issues.

Signed-off-by: Sathish Kumar Kamishettigari <sathishkumar.kamishettigari@amd.com>
@sathishkumar-amd

Copy link
Copy Markdown
Contributor Author

Please use propval() instead of try/except block

Updated the code to use propval()

@onkarharsh onkarharsh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@zeddii zeddii merged commit 4e82565 into devicetree-org:master Jun 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants