Rename lv2_spu_group::num to max_num

This commit is contained in:
Nekotekina 2018-09-19 14:15:15 +03:00
parent 26da91c972
commit dce14a359a
2 changed files with 3 additions and 3 deletions

View File

@ -242,7 +242,7 @@ error_code sys_spu_thread_initialize(vm::ptr<u32> thread, u32 group_id, u32 spu_
group->imgs[spu_num] = std::make_pair(*img, std::vector<sys_spu_segment>()); group->imgs[spu_num] = std::make_pair(*img, std::vector<sys_spu_segment>());
group->imgs[spu_num].second.assign(img->segs.get_ptr(), img->segs.get_ptr() + img->nsegs); group->imgs[spu_num].second.assign(img->segs.get_ptr(), img->segs.get_ptr() + img->nsegs);
if (++group->init == group->num) if (++group->init == group->max_num)
{ {
group->run_state = SPU_THREAD_GROUP_STATUS_INITIALIZED; group->run_state = SPU_THREAD_GROUP_STATUS_INITIALIZED;
} }

View File

@ -224,7 +224,7 @@ struct lv2_spu_group
const std::string name; const std::string name;
const u32 id; const u32 id;
const u32 num; // SPU Number const u32 max_num;
const s32 type; // SPU Thread Group Type const s32 type; // SPU Thread Group Type
const u32 ct; // Memory Container Id const u32 ct; // Memory Container Id
@ -247,7 +247,7 @@ struct lv2_spu_group
lv2_spu_group(std::string name, u32 num, s32 prio, s32 type, u32 ct) lv2_spu_group(std::string name, u32 num, s32 prio, s32 type, u32 ct)
: id(idm::last_id()) : id(idm::last_id())
, name(name) , name(name)
, num(num) , max_num(num)
, init(0) , init(0)
, prio(prio) , prio(prio)
, type(type) , type(type)