From 4e29e7b2c7e457ea52a7c9255d795c306cda8019 Mon Sep 17 00:00:00 2001 From: "lishuang.xie" Date: Wed, 27 Sep 2023 18:24:33 +0800 Subject: [PATCH] update New Feature#1094# 1. modify ape_top.s.c and phy_init.s.c 2. call phy's function Mem_Init() init the sm 3. testcase: 3.1 spu(case34)+arm(case5): pass 3.2 spu(case44)+arm(case5): pass 3.3 spu(case21)+arm(case21):pass 3.4 spu(case14)+arm(case3): pass --- public/ape_spu/top/src/ape_top.s.c | 9 ++++++--- public/ape_spu/top/src/phy_init.s.c | 6 ++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/public/ape_spu/top/src/ape_top.s.c b/public/ape_spu/top/src/ape_top.s.c index b811a32..bde0c75 100644 --- a/public/ape_spu/top/src/ape_top.s.c +++ b/public/ape_spu/top/src/ape_top.s.c @@ -23,6 +23,9 @@ #include "pet_sm_mgt.h" #include "osp_init.h" +extern void Mem_Init(void); + + static int32_t gCoreId = 0; ALWAYS_INLINE int32_t get_core_id(void) { @@ -51,12 +54,12 @@ int32_t soc_drv_init() int apeId = get_core_id(); if (0 == apeId) { - pet_sm_init(); - osp_var_init(); + pet_sm_init(); + Mem_Init(); /* call phy function to mem sm */ } - return 0; + return 0; } diff --git a/public/ape_spu/top/src/phy_init.s.c b/public/ape_spu/top/src/phy_init.s.c index 573ff48..dda56b9 100644 --- a/public/ape_spu/top/src/phy_init.s.c +++ b/public/ape_spu/top/src/phy_init.s.c @@ -30,3 +30,9 @@ void phy_init(void) return; } +void Mem_Init(void) +{ + return ; +} + +