Lines Matching refs:dbg_reg
772 debug = vcpu->arch.dbg_reg; in kvmppc_vcpu_run()
775 current->thread.debug = vcpu->arch.dbg_reg; in kvmppc_vcpu_run()
839 struct debug_reg *dbg_reg = &(vcpu->arch.dbg_reg); in kvmppc_handle_debug() local
854 (vcpu->arch.dbg_reg.dbcr0 & DBCR0_IDM)) in kvmppc_handle_debug()
880 run->debug.arch.address = dbg_reg->dac1; in kvmppc_handle_debug()
882 run->debug.arch.address = dbg_reg->dac2; in kvmppc_handle_debug()
1644 *val = get_reg_val(id, vcpu->arch.dbg_reg.iac1); in kvmppc_get_one_reg()
1647 *val = get_reg_val(id, vcpu->arch.dbg_reg.iac2); in kvmppc_get_one_reg()
1651 *val = get_reg_val(id, vcpu->arch.dbg_reg.iac3); in kvmppc_get_one_reg()
1654 *val = get_reg_val(id, vcpu->arch.dbg_reg.iac4); in kvmppc_get_one_reg()
1658 *val = get_reg_val(id, vcpu->arch.dbg_reg.dac1); in kvmppc_get_one_reg()
1661 *val = get_reg_val(id, vcpu->arch.dbg_reg.dac2); in kvmppc_get_one_reg()
1700 vcpu->arch.dbg_reg.iac1 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1703 vcpu->arch.dbg_reg.iac2 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1707 vcpu->arch.dbg_reg.iac3 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1710 vcpu->arch.dbg_reg.iac4 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1714 vcpu->arch.dbg_reg.dac1 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1717 vcpu->arch.dbg_reg.dac2 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1868 static int kvmppc_booke_add_breakpoint(struct debug_reg *dbg_reg, in kvmppc_booke_add_breakpoint() argument
1873 dbg_reg->dbcr0 |= DBCR0_IAC1; in kvmppc_booke_add_breakpoint()
1874 dbg_reg->iac1 = addr; in kvmppc_booke_add_breakpoint()
1877 dbg_reg->dbcr0 |= DBCR0_IAC2; in kvmppc_booke_add_breakpoint()
1878 dbg_reg->iac2 = addr; in kvmppc_booke_add_breakpoint()
1882 dbg_reg->dbcr0 |= DBCR0_IAC3; in kvmppc_booke_add_breakpoint()
1883 dbg_reg->iac3 = addr; in kvmppc_booke_add_breakpoint()
1886 dbg_reg->dbcr0 |= DBCR0_IAC4; in kvmppc_booke_add_breakpoint()
1887 dbg_reg->iac4 = addr; in kvmppc_booke_add_breakpoint()
1894 dbg_reg->dbcr0 |= DBCR0_IDM; in kvmppc_booke_add_breakpoint()
1898 static int kvmppc_booke_add_watchpoint(struct debug_reg *dbg_reg, uint64_t addr, in kvmppc_booke_add_watchpoint() argument
1904 dbg_reg->dbcr0 |= DBCR0_DAC1R; in kvmppc_booke_add_watchpoint()
1906 dbg_reg->dbcr0 |= DBCR0_DAC1W; in kvmppc_booke_add_watchpoint()
1907 dbg_reg->dac1 = addr; in kvmppc_booke_add_watchpoint()
1911 dbg_reg->dbcr0 |= DBCR0_DAC2R; in kvmppc_booke_add_watchpoint()
1913 dbg_reg->dbcr0 |= DBCR0_DAC2W; in kvmppc_booke_add_watchpoint()
1914 dbg_reg->dac2 = addr; in kvmppc_booke_add_watchpoint()
1920 dbg_reg->dbcr0 |= DBCR0_IDM; in kvmppc_booke_add_watchpoint()
2000 struct debug_reg *dbg_reg; in kvm_arch_vcpu_ioctl_set_guest_debug() local
2007 vcpu->arch.dbg_reg.dbcr0 = 0; in kvm_arch_vcpu_ioctl_set_guest_debug()
2015 vcpu->arch.dbg_reg.dbcr0 = 0; in kvm_arch_vcpu_ioctl_set_guest_debug()
2018 vcpu->arch.dbg_reg.dbcr0 |= DBCR0_IDM | DBCR0_IC; in kvm_arch_vcpu_ioctl_set_guest_debug()
2021 dbg_reg = &(vcpu->arch.dbg_reg); in kvm_arch_vcpu_ioctl_set_guest_debug()
2028 dbg_reg->dbcr1 = 0; in kvm_arch_vcpu_ioctl_set_guest_debug()
2029 dbg_reg->dbcr2 = 0; in kvm_arch_vcpu_ioctl_set_guest_debug()
2036 dbg_reg->dbcr1 = DBCR1_IAC1US | DBCR1_IAC2US | DBCR1_IAC3US | in kvm_arch_vcpu_ioctl_set_guest_debug()
2038 dbg_reg->dbcr2 = DBCR2_DAC1US | DBCR2_DAC2US; in kvm_arch_vcpu_ioctl_set_guest_debug()
2059 if (kvmppc_booke_add_breakpoint(dbg_reg, addr, b++)) in kvm_arch_vcpu_ioctl_set_guest_debug()
2063 if (kvmppc_booke_add_watchpoint(dbg_reg, addr, in kvm_arch_vcpu_ioctl_set_guest_debug()