jobcontrol.cc (10915:71ace17ccb3d) jobcontrol.cc (11313:89fd4a775287)
1/*
2 * Copyright (c) 2014-2015 ARM Limited
3 * All rights reserved
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *

--- 27 unchanged lines hidden (view full) ---

36 slots.emplace_back(_gpu, *this, i);
37
38}
39
40JobControl::~JobControl()
41{
42}
43
1/*
2 * Copyright (c) 2014-2015 ARM Limited
3 * All rights reserved
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *

--- 27 unchanged lines hidden (view full) ---

36 slots.emplace_back(_gpu, *this, i);
37
38}
39
40JobControl::~JobControl()
41{
42}
43
44void
45JobControl::reset()
46{
47 GPUBlockInt::reset();
48
49 for (auto &js : slots)
50 js.reset();
51}
52
44uint32_t
45JobControl::readReg(RegAddr addr)
46{
47 if (addr >= RegAddr(JOB_SLOT0)) {
48 return slots[getJobSlotNo(addr)].readReg(getJobSlotAddr(addr));
49 } else {
50 return GPUBlockInt::readReg(addr);
51 }

--- 88 unchanged lines hidden ---
53uint32_t
54JobControl::readReg(RegAddr addr)
55{
56 if (addr >= RegAddr(JOB_SLOT0)) {
57 return slots[getJobSlotNo(addr)].readReg(getJobSlotAddr(addr));
58 } else {
59 return GPUBlockInt::readReg(addr);
60 }

--- 88 unchanged lines hidden ---