Skip to content

Improper default value for field CachedValues::apps_offset #448

@tonywangxy

Description

@tonywangxy

Hello,

It is found that CachedValues::apps_offset uses EMULATOR_MEMORY_MAP.sram_offset as initial value for both emulator and FPGA platforms.

Image

Then, apps_offset is used in below logic for range check when doing runtime building. As for the FPGA build, ram_start is calculated by FPGA memory map which is quite different with emulator's map. If the sram_offset in emulator memory map is bigger than the offset in FPGA memory map, below comparison would always fail.

Image

Can anyone help to confirm this issue?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions