Commit 4b82c671 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: Implement function in sim



The function `flash_area_id_from_image_slot` is used in the RAM_LOAD and
DIRECT_XIP configurations.  Define a version for use in the simulator.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 6db44d7a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -438,6 +438,11 @@ uint8_t flash_area_get_device_id(const struct flash_area *fa)
    return fa->fa_device_id;
}

int flash_area_id_from_image_slot(int slot) {
    /* For single image cases, just use the first image. */
    return flash_area_id_from_multi_image_slot(0, slot);
}

void sim_assert(int x, const char *assertion, const char *file, unsigned int line, const char *function)
{
    if (!(x)) {