fix: flush bl2_ep_info before exit from BL1

This patch fixes a cache flush issue for `bl2_ep_info`. With this fix,
we can run FVP with cache state modelling enabled for testing TFTF and
TRP.

Change-Id: Id525d29d43f58b25dd1f44b40d29e7693fc56e4a
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Signed-off-by: John Powell <john.powell@arm.com>
diff --git a/bl1/aarch64/bl1_context_mgmt.c b/bl1/aarch64/bl1_context_mgmt.c
index c78f6a9..9de5fbb 100644
--- a/bl1/aarch64/bl1_context_mgmt.c
+++ b/bl1/aarch64/bl1_context_mgmt.c
@@ -114,6 +114,8 @@
 	bl2_ep_info->spsr = (uint32_t)SPSR_64(MODE_EL3, MODE_SP_ELX,
 						DISABLE_ALL_EXCEPTIONS);
 
+	flush_dcache_range((uintptr_t)bl2_ep_info, sizeof(entry_point_info_t));
+
 	/* Indicate that image is in execution state. */
 	bl2_desc->state = IMAGE_STATE_EXECUTED;
 
diff --git a/docs/components/rme/rme-userguide.rst b/docs/components/rme/rme-userguide.rst
index 4978f6e..ba03bba 100644
--- a/docs/components/rme/rme-userguide.rst
+++ b/docs/components/rme/rme-userguide.rst
@@ -83,7 +83,7 @@
     -C bp.refcounter.non_arch_start_at_default=1 \
     -C bp.refcounter.use_real_time=0 \
     -C bp.secure_memory=1 \
-    -C cache_state_modelled=0 \
+    -C cache_state_modelled=1 \
     -C cluster0.ecv_support_level=2 \
     -C cluster1.ecv_support_level=2 \
     -C cluster0.gicv3.cpuintf-mmap-access-level=2 \