update New Feature#1120#

1. update the test/case20/src/testcase20.c
2. update the function cell_setup_simulation
3. test:
   3.1 SPU(case14)+ARM(case3) :PASS
   3.2 SPU(case20)+ARM(case20):PASS
   3.3 SPU(case21)+ARM(case21):PASS
   3.4 SPU(case34)+ARM(case5) :PASS
   3.5 SPU(case44)+ARM(case5) :PASS
This commit is contained in:
lishuang.xie 2023-10-12 10:47:28 +08:00
parent d0a6fb740a
commit ec4c51c8d6

View File

@ -189,7 +189,7 @@ static inline void msg_transfer_queue_polling(void)
#define CELL_SETUP_TYPE_SIMULATION (0x5a6b7c8d) #define CELL_SETUP_TYPE_SIMULATION (0x5a6b7c8d)
void cell_setup_simulation() void cell_setup_simulation(uint8_t scs_id, uint8_t cell_id, uint32_t run_core)
{ {
uint32_t size = 16; uint32_t size = 16;
char* buf; char* buf;
@ -213,9 +213,13 @@ void cell_setup_simulation()
return ; return ;
//continue; //continue;
} }
*(uint32_t*)(buf + 0) = CELL_SETUP_TYPE_SIMULATION; *(uint32_t*)(buf + 0) = CELL_SETUP_TYPE_SIMULATION;
*(uint32_t*)(buf + 4) = read_stc_local_timer(); *(uint32_t*)(buf + 4) = read_stc_local_timer();
*(uint32_t*)(buf + 12) = 0; // build cell
*(uint32_t*)(buf + 16) = scs_id;
*(uint32_t*)(buf + 20) = cell_id;
*(uint32_t*)(buf + 24) = run_core;
ret = msg_transfer_send_msg(handler.value, cu_flag, (uint8_t *)buf, offset, size); ret = msg_transfer_send_msg(handler.value, cu_flag, (uint8_t *)buf, offset, size);
ret = msg_transfer_send_end(handler.value,cu_flag); ret = msg_transfer_send_end(handler.value,cu_flag);
@ -247,8 +251,11 @@ int32_t test_case(uint32_t argc, int32_t* argvp)
handler.type_id = CU_SPLIT; handler.type_id = CU_SPLIT;
int32_t ret; int32_t ret;
uint8_t scs_id = 1; // NR 30K
uint8_t cell_id = 0;
uint32_t run_ape = 0xF;
cell_setup_simulation(); cell_setup_simulation(scs_id, cell_id, run_ape);
while(1) while(1)
{ {