Skip to content
Snippets Groups Projects
  • Peter Maydell's avatar
    a1777f7f
    memory: Provide memory_region_init_rom() · a1777f7f
    Peter Maydell authored
    
    Provide a new helper function memory_region_init_rom() for memory
    regions which are read-only (and unlike those created by
    memory_region_init_rom_device() don't have special behaviour
    for writes). This has the same behaviour as calling
    memory_region_init_ram() and then memory_region_set_readonly()
    (which is what we do today in boards with pure ROMs) but is a
    more easily discoverable API for the purpose.
    
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Message-id: 1467122287-24974-2-git-send-email-peter.maydell@linaro.org
    a1777f7f
    History
    memory: Provide memory_region_init_rom()
    Peter Maydell authored
    
    Provide a new helper function memory_region_init_rom() for memory
    regions which are read-only (and unlike those created by
    memory_region_init_rom_device() don't have special behaviour
    for writes). This has the same behaviour as calling
    memory_region_init_ram() and then memory_region_set_readonly()
    (which is what we do today in boards with pure ROMs) but is a
    more easily discoverable API for the purpose.
    
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Message-id: 1467122287-24974-2-git-send-email-peter.maydell@linaro.org