In southern India , power was shared by the Pallavas in Kanchipuram and the Pandyas and Cholas vying for control of Thanjavur ( Tanjore ) .
Control of Thanjavur was being contested by the Pandyas and Cholas .